Skip to main content
Glama

Aceitar ou recusar orçamento

respond_to_quote
Destructive

Leva a decisão do CONSUMIDOR sobre o orçamento respondido (status ANSWERED): accept true vira pedido com os preços da loja (o consumidor acompanha e paga pelo mesmo link; a loja combina o pagamento); false recusa. Só responda depois de mostrar os preços ao consumidor e ele decidir.

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": {
      "quoteId": "<quoteId>",
      "accept": "<accept>"
    },
    "name": "respond_to_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
acceptYestrue aceita (vira pedido), false recusa
reasonNoAo recusar: o motivo, nas palavras do consumidor
quoteIdYesid do orçamento (de request_quote)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and non-idempotent, and the description earns its keep by describing the consequence: an order is created with the store's prices, the consumer follows and pays through the same link, and the store arranges payment. It does not say whether acceptance can be undone or what an invalid-state call returns, which matters for a destructive, non-idempotent mutation.

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 tight sentences: outcome first, then the two branches, then the precondition. The parenthetical about payment via the same link earns its place by explaining the consumer experience, though the sentence is dense and could be split.

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?

There is no output schema, so the description must carry the return/outcome story, and it does: accept yields an order the consumer pays through the same link, decline closes the quote. Combined with the destructive hint and complete schema, an agent has enough to call it correctly.

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 coverage is 100%, so all three parameters (quoteId, accept, reason) are already documented, including the true/false meaning of accept. The description's 'accept true vira pedido com os preços da loja' restates the schema rather than adding new semantics, so the baseline of 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 (leva a decisão / respond) and resource (orçamento in ANSWERED status) and spells out both outcome branches: accept=true converts to an order at store prices, false declines. It is clearly distinct from request_quote and get_quote, which create and read quotes respectively.

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 a hard precondition — only call after showing prices to the consumer and the consumer decides — and constrains the input state to quotes with status ANSWERED. It stops short of explicitly naming which sibling to call first (get_quote) or what to do if the quote is not yet ANSWERED.

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