Skip to main content
Glama

Compraloco

Crear checkout

create_checkout

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).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
buyerNo
linesNo
checkoutNo
destinationNo
buyer_consentNo
fulfillment_option_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare the safety profile (not read-only, not idempotent, not destructive), so the description carries real weight and delivers: shipping cost is forced to zero, total is derived from lines, payment is cash on delivery, and the server rejects the payload with 'data_consent_required' when consent is missing. Return shape is not described, but no output schema exists and the error-path disclosure is the more valuable information.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the business semantics, then requirements, then the consent prerequisite and its failure mode - a logical progression with no filler. The parenthetical field lists are dense but each item is load-bearing; only the repetition of the required-field list slightly lengthens it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter, deeply nested, non-idempotent write tool with no output schema, the description covers pricing behavior, required inputs, the consent gate, and the specific rejection code. The remaining gap is the unmentioned 'checkout' object and 'fulfillment_option_id', plus nothing about what a successful response contains.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage the description must compensate, and it does for the critical paths: lines (variant_id + quantity), the five mandatory buyer fields including the 10-digit Colombian mobile and 6-10 digit cédula, destination, and buyer_consent.data_processing_accepted = true. It is silent on the 'checkout' object and 'fulfillment_option_id' (only 'standard'), which keeps it from a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Crea un checkout contraentrega') and immediately pins down the commercial semantics: free shipping, total = product sum, cash on delivery. It is clearly a create operation distinct from cancel/complete/get/update siblings, though it does not name an alternative explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear prerequisite chain: if buyer or destination is sent, the privacy notice must be shown and express authorization obtained first, with the exact field to set. It also enumerates the mandatory inputs, so an agent knows the conditions for a successful call. It lacks explicit when-not-to-use guidance or named alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources