Skip to main content
Glama

Compraloco

Actualizar checkout

update_checkout
Idempotent

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

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>",
      "checkout_token": "<checkout_token>"
    },
    "name": "update_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
buyerNo
linesNo
checkoutNo
destinationNo
buyer_consentNo
checkout_tokenYes
fulfillment_option_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the annotations (non-read-only, idempotent, non-destructive), it discloses a hard server-side gate: without buyer_consent.data_processing_accepted = true the request is rejected with data_consent_required. That is exactly the kind of precondition, error behavior, and consent requirement the structured fields do not carry.

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?

Two dense sentences: the first front-loads what can be updated, the second attaches the consent precondition to the buyer/destination paths. No filler, though the parenthetical required-field list slightly crowds the opening clause.

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

Completeness3/5

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

For an 8-parameter mutation with nested objects and no output schema, it covers the risky paths (buyer, destination, lines) and the consent gate but omits partial-vs-full update semantics, the checkout and fulfillment_option_id parameters, and any indication of what a successful response contains.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must carry the load. It usefully documents that buyer requires document_id/cédula, phone and email (the schema leaves buyer as an untyped object) and that buyer_consent.data_processing_accepted must be true, but it says nothing about id, checkout_token, the checkout object, or fulfillment_option_id.

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 plus the exact mutable surface: buyer (with document_id/cédula, phone and email required), destination, or lines of a checkout. An agent can tell this is a partial-update tool for an existing checkout, distinct from create/complete/cancel siblings, though the description never names those siblings 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 concrete conditional rule: if you send buyer or destination, you must first show the privacy notice and obtain express authorization. It does not address when to prefer this over complete_checkout or create_checkout, nor what happens with the other optional fields, so it stops short of full routing guidance.

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