Skip to main content
Glama

Aplicar mudança na proposta

change_order_proposal
Destructive

Aplica a mudança de uma prévia (preview_order_proposal_change) que a cliente aprovou. O previa_id vale uma vez; repetir a chamada responde "repetido". A página da proposta mostra o que mudou e pede para ela conferir antes de pagar. Mostre o link à cliente: ela confere e paga no site. Nada é enviado sem a confirmação dela.

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>",
      "previa_id": "<previa_id>",
      "confirm_total": "<confirm_total>"
    },
    "name": "change_order_proposal"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesReferência da proposta (P-1234), a mesma da prévia.
previa_idYesprevia_id devolvido por preview_order_proposal_change, sem alterar.
confirm_totalYesO total da prévia.

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.3/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, but the description adds the crucial nuance that previa_id is single-use and a repeat call answers "repetido" rather than duplicating the change, plus the fact that payment happens on the site after the client reviews the link. Error behaviour other than the repeat case is not disclosed.

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 action and the source preview; all four sentences carry information. Slight redundancy between 'a página da proposta mostra o que mudou e pede para ela conferir' and 'Mostre o link à cliente: ela confere e paga' costs it a point.

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 destructive, non-idempotent mutation with an output schema and full annotation coverage, the description supplies what the structured fields cannot: the single-use token rule, the human confirmation checkpoint, and where payment occurs. Only richer failure-mode guidance 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, and the description goes beyond it by stating the lifecycle rule for previa_id (valid exactly once, taken unchanged from the preview) and by implying id must match the one used in the preview. confirm_total gets no extra explanation here.

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 ('Aplica a mudança de uma prévia') and pins the source object to the sibling tool preview_order_proposal_change, so the agent can separate this apply step from the preview step without opening either 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?

Makes the prerequisite explicit: only after the client approved the preview, and nothing goes out without her confirmation, which routes the agent to preview first and to this tool second. It does not cover the negative cases, e.g. what to do if no preview exists or when cancel_order_proposal is the right sibling instead.

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