{"schema_version":"2025-06-18","name":"compraloco-buyer-mcp","title":"Compraloco — MCP de compra contraentrega","version":"2.0.0","description":"Catálogo, cotización de envío, checkout contraentrega con confirmación obligatoria por correo y seguimiento de pedidos en Colombia.","endpoint":"https://www.compraloco.com.co/mcp","transport":{"type":"streamable-http","method":"POST","content_type":"application/json","protocol":"JSON-RPC 2.0"},"protocol_versions":["2025-11-25","2025-06-18","2025-03-26","2024-11-05"],"commerce":{"shipping":"Envío gratis a toda Colombia (valor 0 COP).","payment":"Solo contraentrega (cash_on_delivery): el comprador paga en efectivo al recibir.","confirmation":"Tras complete_checkout el comprador confirma el pedido con un código de 6 dígitos (o enlace) enviado a su correo; sin esa confirmación no se despacha."},"authentication":{"type":"none","notes":"Sin cuenta. create_checkout devuelve checkout_token (requerido en get/update/complete/cancel). complete_checkout devuelve order.access_token (requerido en get_order, verify_order_identity, resend_order_confirmation)."},"capabilities":{"tools":{"listChanged":false}},"tools":[{"name":"search_catalog","title":"Buscar productos","description":"Busca productos de la tienda por texto o categoría (precios en COP). Todos se venden con envío gratis a toda Colombia y pago contraentrega. Devuelve hasta 8 variantes por producto (variants_total indica cuántas hay); usa get_product para todas.","inputSchema":{"type":"object","properties":{"query":{"type":"string"},"q":{"type":"string"},"category":{"type":"string"},"limit":{"type":"integer"},"cursor":{"type":"string"},"include_adult":{"type":"boolean","description":"Solo true: incluye productos para adultos (Travesuras). El comprador debe ser mayor de 18."}},"additionalProperties":false},"annotations":{"title":"Buscar productos","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"get_product","title":"Ver producto","description":"Devuelve ficha, todas las variantes (variant_id para el checkout), precios COP, stock y fotos. Envío gratis a toda Colombia, pago contraentrega.","inputSchema":{"type":"object","properties":{"id":{"type":"string"},"product_id":{"type":"string"},"include_adult":{"type":"boolean","description":"Solo true: permite fichas de productos para adultos."}},"required":["id"],"additionalProperties":false},"annotations":{"title":"Ver producto","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"quote_shipping","title":"Cotizar envío contraentrega","description":"Plazo de entrega contraentrega en Colombia para un departamento y ciudad opcional. El envío es gratis: el valor siempre es 0.","inputSchema":{"type":"object","properties":{"department":{"type":"string"},"city":{"type":"string"},"variant_id":{"type":"string"},"quantity":{"type":"integer"},"weight_grams":{"type":"integer"}},"required":["department"],"additionalProperties":false},"annotations":{"title":"Cotizar envío contraentrega","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}},{"name":"create_checkout","title":"Crear checkout","description":"Crea un checkout contraentrega: envío gratis (shipping_cop = 0), total = suma de productos, pago en efectivo al recibir. Requiere lines (variant_id + quantity), buyer (OBLIGATORIOS: document_id/cédula, phone celular 10 dígitos, email válido, first_name, last_name) y destination. Si envías buyer o destination, antes debes mostrar al comprador el aviso de privacidad y obtener su autorización expresa; envía buyer_consent.data_processing_accepted = true. Sin ella el servidor rechaza los datos (data_consent_required).","inputSchema":{"type":"object","properties":{"checkout":{"type":"object"},"lines":{"type":"array","minItems":1,"items":{"type":"object","required":["variant_id","quantity"],"properties":{"variant_id":{"type":"string"},"quantity":{"type":"integer","minimum":1,"maximum":10}}}},"buyer":{"type":"object","required":["document_id","phone","email","first_name","last_name"],"properties":{"document_id":{"type":"string","description":"Cédula colombiana obligatoria (6 a 10 dígitos)"},"phone":{"type":"string","description":"Celular colombiano obligatorio de 10 dígitos"},"email":{"type":"string","description":"Correo obligatorio para confirmar el pedido antes del despacho"},"first_name":{"type":"string"},"last_name":{"type":"string"}}},"destination":{"type":"object","required":["street","city","department"],"properties":{"street":{"type":"string"},"city":{"type":"string"},"department":{"type":"string"},"postal_code":{"type":"string"},"notes":{"type":"string"}}},"fulfillment_option_id":{"type":"string","enum":["standard"]},"buyer_consent":{"type":"object","properties":{"data_processing_accepted":{"type":"boolean","const":true},"channel":{"type":"string"}}}},"additionalProperties":false},"annotations":{"title":"Crear checkout","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"update_checkout","title":"Actualizar checkout","description":"Actualiza buyer (document_id/cédula, phone y email son obligatorios), destino o líneas de un checkout. Si envías buyer o destination, antes debes mostrar al comprador el aviso de privacidad y obtener su autorización expresa; envía buyer_consent.data_processing_accepted = true. Sin ella el servidor rechaza los datos (data_consent_required).","inputSchema":{"type":"object","properties":{"id":{"type":"string"},"checkout_token":{"type":"string"},"checkout":{"type":"object"},"buyer":{"type":"object"},"destination":{"type":"object","required":["street","city","department"],"properties":{"street":{"type":"string"},"city":{"type":"string"},"department":{"type":"string"},"postal_code":{"type":"string"},"notes":{"type":"string"}}},"lines":{"type":"array","minItems":1,"items":{"type":"object","required":["variant_id","quantity"],"properties":{"variant_id":{"type":"string"},"quantity":{"type":"integer","minimum":1,"maximum":10}}}},"fulfillment_option_id":{"type":"string","enum":["standard"]},"buyer_consent":{"type":"object","properties":{"data_processing_accepted":{"type":"boolean","const":true},"channel":{"type":"string"}}}},"required":["id","checkout_token"],"additionalProperties":false},"annotations":{"title":"Actualizar checkout","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"get_checkout","title":"Consultar checkout","description":"Consulta el estado actual de un checkout.","inputSchema":{"type":"object","properties":{"id":{"type":"string"},"checkout_token":{"type":"string"}},"required":["id","checkout_token"],"additionalProperties":false},"annotations":{"title":"Consultar checkout","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"complete_checkout","title":"Confirmar pedido contraentrega","description":"Registra un pedido 100% dropshipping contraentrega (payment_method: cash_on_delivery). Evalúa riesgo y envía un correo de confirmación obligatorio (enlace + código de 6 dígitos) que el comprador debe confirmar antes de despachar con Dropi Colombia. Antes de llamar, muestra al comprador el resumen (productos, envío (gratis), total, plazo de entrega) y obtén su aceptación expresa de los términos y de la autorización de datos.","inputSchema":{"type":"object","properties":{"id":{"type":"string"},"checkout_token":{"type":"string"},"payment_method":{"type":"string","enum":["cash_on_delivery"]},"payment":{"type":"object"},"buyer_confirms_adult":{"type":"boolean","description":"Obligatorio si el carrito tiene productos de Travesuras: el comprador confirma ser mayor de 18."},"idempotency_key":{"type":"string"},"meta":{"type":"object","properties":{"idempotency-key":{"type":"string"}}},"buyer_consent":{"type":"object","required":["terms_accepted","data_processing_accepted"],"properties":{"terms_accepted":{"type":"boolean","const":true},"data_processing_accepted":{"type":"boolean","const":true}}},"expected_total_cop":{"type":"integer"}},"required":["id","checkout_token","payment_method","buyer_consent"],"additionalProperties":false},"annotations":{"title":"Confirmar pedido contraentrega","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}},{"name":"cancel_checkout","title":"Cancelar checkout","description":"Cancela un checkout abierto y libera el estado.","inputSchema":{"type":"object","properties":{"id":{"type":"string"},"checkout_token":{"type":"string"}},"required":["id","checkout_token"],"additionalProperties":false},"annotations":{"title":"Cancelar checkout","readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"get_order","title":"Consultar pedido","description":"Consulta un pedido contraentrega usando su id y access_token (devuelto por complete_checkout). Si lo perdiste (p. ej. reintento idempotente), usa el checkout_token del checkout que creó el pedido.","inputSchema":{"type":"object","properties":{"id":{"type":"string"},"access_token":{"type":"string"},"checkout_token":{"type":"string"}},"required":["id"],"additionalProperties":false},"annotations":{"title":"Consultar pedido","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"resend_order_confirmation","title":"Reenviar correo de confirmación","description":"Reenvía el correo de confirmación (enlace + código de 6 dígitos) de un pedido pendiente. Usa access_token (devuelto por complete_checkout) o el checkout_token del checkout que creó el pedido.","inputSchema":{"type":"object","properties":{"order_id":{"type":"string"},"access_token":{"type":"string"},"checkout_token":{"type":"string"}},"required":["order_id"],"additionalProperties":false},"annotations":{"title":"Reenviar correo de confirmación","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"verify_order_identity","title":"Confirmar pedido con código del correo","description":"Confirma un pedido contraentrega mediante el código de 6 dígitos enviado al correo electrónico del comprador (y access_token, o el checkout_token del checkout que creó el pedido) para liberar el despacho inmediato con Dropi Colombia.","inputSchema":{"type":"object","properties":{"order_id":{"type":"string"},"id":{"type":"string"},"access_token":{"type":"string"},"checkout_token":{"type":"string"},"code":{"type":"string"},"challenge_token":{"type":"string"},"token":{"type":"string"}},"required":["order_id","code"],"additionalProperties":false},"annotations":{"title":"Confirmar pedido con código del correo","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}],"documentation":{"llms":"https://www.compraloco.com.co/llms.txt","openapi":"https://www.compraloco.com.co/openapi.json","agent_manifest":"https://www.compraloco.com.co/.well-known/agent.json"},"contact":"contacto@compraloco.com.co"}