Skip to main content
Glama

dosvirgos · Tienda de coleccionables

Estado de un pedido

get_order_status
Read-only

Usala cuando la persona pregunta por un pedido ya pagado. Devuelve si está pago, en preparación, enviado (con código y link de seguimiento), entregado o cancelado, el total y los productos. Necesita el número de pedido y la llave del link del mail de confirmación (parámetro t de la URL /pedido/NÚMERO?t=LLAVE).

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": {
      "numero": "<numero>",
      "llave": "<llave>"
    },
    "name": "get_order_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
llaveYesValor del parámetro t del link del mail de confirmación.
numeroYesNúmero de pedido, ej. 12 (figura en el mail y en la URL /pedido/12).

Output Schema

NameRequiredDescriptionDefault
estadoYessin pagar, pago, en preparación, enviado, entregado o cancelado.
productosYes
total_arsYesTotal pagado en pesos, con envío.
seguimientoNoCódigo de seguimiento del correo.
seguimiento_urlNoLink de seguimiento.

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 readOnlyHint=true and openWorldHint=false, so the safety profile is covered; the description adds genuinely new context: the full status vocabulary returned, the tracking link/code payload, and the access-control requirement that the confirmation-email key must be supplied. It omits what happens when the key is invalid or expired, which is the main residual gap.

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?

Three sentences, front-loaded with the usage condition, then the return content, then the required inputs. Efficient overall, though the URL/parameter restatement in the last sentence duplicates what the schema already documents.

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 two-parameter, read-only lookup with full schema coverage and an output schema, the definition covers trigger, return set and authentication requirement. The only missing element is failure behavior for an invalid or expired key, which is minor given the output schema carries the return shape.

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 100%, so both parameters are already documented in the schema, and the description largely restates the same origin (the t parameter of the /pedido/NÚMERO?t=LLAVE URL). It adds no syntax or format detail beyond that, so the baseline 3 applies.

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

Purpose5/5

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

States a specific verb and resource ('devuelve el estado de un pedido') and enumerates the exact return set: paid, preparing, shipped with tracking code and link, delivered or cancelled, plus total and products. An agent can distinguish this from get_product, create_cart_link, quote_shipping and search_products without opening any schema.

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 an explicit trigger condition ('cuando la persona pregunta por un pedido ya pagado'), which also implicitly excludes unpaid orders. It does not name an alternative tool or state what to do when the order is not yet paid, so it falls short of the when/when-not/alternatives bar.

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