Skip to main content
Glama

Compraloco

Consultar pedido

get_order
Read-onlyIdempotent

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.

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>"
    },
    "name": "get_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
access_tokenNo
checkout_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely new behavioral context: the authentication credential required, where it comes from (complete_checkout), and the recovery path for retries. It does not describe error behavior when a token is wrong or whether both tokens can be supplied together.

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

Conciseness5/5

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

Two sentences, zero filler, with the primary usage stated first and the fallback path second. The parenthetical retry example earns its place by naming the exact scenario that triggers the alternative token.

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 simple three-parameter read tool with no output schema, the description covers the essential calling information: identity, credentials, and the fallback for lost credentials. It is not fully complete because it omits what the response contains and how failures surface, but nothing critical to making a valid call is missing.

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?

Schema description coverage is 0%, so the description carries the burden and mostly does: it explains id as the order identifier, access_token as the value returned by complete_checkout, and checkout_token as the fallback tied to the originating checkout. It leaves a gap on precedence or interaction when multiple tokens are passed, and creates slight tension with the schema, which marks only id as required while the text implies access_token is normally needed.

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 ("Consulta un pedido contraentrega") and scopes it to cash-on-delivery orders, so the agent knows this is a read of an existing order rather than checkout data. It names complete_checkout as the producer of the credential but never contrasts itself with the sibling get_checkout, so sibling differentiation is only partial.

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 concrete when-to-use guidance: use id plus access_token normally, and fall back to checkout_token when the access_token was lost on an idempotent retry. It stops short of stating when NOT to use this tool (e.g., for checking out or cancelling) or what an invalid token produces.

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