Skip to main content
Glama

Cancelar proposta

cancel_order_proposal
DestructiveIdempotent

Cancela uma proposta aberta que você (este assistente) preparou, quando a cliente desistir dela ou antes de preparar outra no lugar. Use só com o pedido dela. Nada foi enviado nem cobrado: a proposta some da página dela. Uma proposta que já virou pedido não é cancelada por aqui: o pedido se cancela com o atendimento da loja. Repetir a chamada não muda nada.

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

Input Schema

NameRequiredDescriptionDefault
idYesReferência da proposta (P-1234).

Output Schema

NameRequiredDescriptionDefault
linkYes
cupomNo
freteNo
itensNo
moedaNo
prazoNo
totalYes
statusYes
versaoNo
propostaYesReferência, ex.: P-1234.
repetidaNo
pedido_idNo
diferencasNo
prazo_textoYes
canais_avisadosNo
texto_para_mostrarYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=false, so the safety profile is covered. The description still adds real context beyond them: nothing was sent or charged, the proposal simply disappears from the client's page, and an already-converted proposal is out of scope. The final sentence on repeat calls only restates idempotentHint, which keeps it from a 5.

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?

Purpose and trigger are front-loaded, and each sentence contributes a distinct rule: consent requirement, no side effects, escalation path for real orders. The closing idempotency sentence duplicates the idempotentHint annotation, a small redundancy in an otherwise tight structure.

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?

An output schema and annotations already cover return values and the safety profile, so the description only needs to carry preconditions, effects and exclusions – all of which it does. An agent has everything needed to decide whether to call this tool and what will happen to the client's proposal.

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% with a single required 'id' parameter already documented with format and example ('P-1234'). The description adds no extra meaning about the identifier, so the baseline of 3 for schema-covered parameters applies.

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?

The description states a specific verb and resource ('Cancela uma proposta aberta'), and narrows the scope to proposals this assistant itself created. It also draws a clear line against cancelling a real order, though it never explicitly contrasts itself with siblings like change_order_proposal or place_order_proposal, leaving that distinction to inference.

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?

It gives explicit when-to-use triggers ('quando a cliente desistir dela ou antes de preparar outra no lugar') plus a hard precondition ('Use só com o pedido dela'). It also states when NOT to use it – a proposal that already became an order must be cancelled through store support instead – so the agent has both the positive and negative routing rule.

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