Skip to main content
Glama

Avanzar pedido de la cocina

avanzar_pedido_cocina
Destructive

Restaurantes: pasa un pedido al siguiente estado de cocina (recibido → preparando → listo → entregado) o, con estado «cancelada», lo cancela en la cocina. No se puede retroceder. No toca el pago ni mueve dinero.

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": "avanzar_pedido_cocina"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesid del pedido
estadoNoestado destino; sin él, avanza al siguiente

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false; the description adds real value on top by defining the forward-only transition rule and explicitly scoping the blast radius ('No toca el pago ni mueve dinero'), which tells the agent the destruction is limited to kitchen state. It still doesn't say what happens on an invalid transition or what the response contains.

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, scope prefix first, the transition chain and the cancellation case up front, and the safety caveat last. Every clause carries information an agent needs; nothing is padded.

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 mutation tool with no output schema and full annotation coverage, the definition covers the transition model, irreversibility, and the money/payment boundary. The only gap is error behavior for illegal transitions, which is minor given how constrained the enum is.

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 coverage is 100%, so the baseline would be 3, but the description goes further by spelling out the full progression recibido → preparando → listo → entregado, which the schema only implies through its enum. It also clarifies that 'cancelada' is a cancellation rather than a step in the sequence.

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?

Names a specific verb and resource ('pasa un pedido al siguiente estado de cocina') and enumerates the exact state machine it drives. The 'Restaurantes:' prefix and the cancel variant make it clearly distinguishable from crear_pedido_cocina, ver_pedido_cocina and the cancelar_* siblings.

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?

Tells the agent when to use the tool (advance a kitchen order, or cancel by passing 'cancelada') and adds the hard constraint 'No se puede retroceder'. It does not name an alternative tool for the case where the agent only wants to inspect an order, so a 4 rather than a 5.

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