Skip to main content
Glama

Repetir pedido para o consumidor confirmar

reorder

Repete um pedido anterior: monta um carrinho NOVO na mesma loja, com os mesmos itens e adicionais, preço e estoque de agora, e devolve cart.confirmUrl para o consumidor revisar e confirmar (como create_cart: nunca diga que a compra foi feita). Por padrão repete a forma de receber, o CEP e a observação; mande só o que mudar. Serviço, visita e reserva precisam do novo horário ou das novas datas (scheduledFor, checkIn/checkOut). Item que acabou ou saiu do catálogo fica de fora e aparece em skipped com o motivo: avise o consumidor e, se quiser, sugira um parecido com search_products. Use o cartId de list_past_orders ou de um create_cart seu.

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": {
      "cartId": "<cartId>"
    },
    "name": "reorder"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoObservação para a loja; vazio = a mesma
cartIdYescartId do pedido a repetir
guestsNoReserva: quantas pessoas
checkInNoReserva: nova entrada (AAAA-MM-DD)
checkOutNoReserva: nova saída (AAAA-MM-DD)
couponCodeNoCupom da loja para este pedido
postalCodeNoOutro código postal (CEP); vazio = o mesmo
fulfillmentNoOutra forma de receber ('pickup', 'delivery', 'shipping'...); vazio = a mesma
scheduledForNoServiço ou visita: nova data e hora com fuso (de check_availability)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the mutation shape (readOnlyHint=false, destructiveHint=false, non-idempotent); the description goes further by explaining that a new cart is created but the purchase is not completed, that the consumer must confirm via confirmUrl, and that unavailable items are dropped into 'skipped' with a reason. That is exactly the kind of side-effect and failure-mode context annotations cannot convey.

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 core action and the confirmation semantics, and nearly every clause carries operational value (defaults, reservation dates, skipped handling, cartId source). It reads as one dense run-on paragraph, so a light restructure would help, but there is no filler.

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

Completeness5/5

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

For a 9-parameter mutation with no output schema, the description covers the return surface (cart.confirmUrl, skipped with reason), the defaulting behavior, the conditional parameters, and the sourcing of cartId. Nothing an agent needs to call this correctly 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 coverage is 100%, so the baseline is 3, but the description adds semantics the schema does not: unchanged fields are inherited by default ('vazio = a mesma' is reinforced at the description level), and scheduledFor/checkIn/checkOut are only required for service, visit and reservation orders. It does not spell out the skipped-item payload structure, keeping it below 5.

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 outcome: it repeats a previous order by building a NEW cart in the same store with the same items, add-ons, current price and stock, and returns cart.confirmUrl. It explicitly distinguishes this from create_cart ('como create_cart') and from list_past_orders (source of the cartId), so an agent can tell it apart from siblings without opening a schema.

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

Usage Guidelines5/5

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

Names the prerequisites and alternatives concretely: cartId comes from list_past_orders or a prior create_cart, scheduledFor comes from check_availability, and search_products is offered for suggesting substitutes when items are skipped. It also gives the operating rule 'mande só o que mudar', so the agent knows the defaults are inherited rather than omitted.

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