Skip to main content
Glama

Update Quote Status

update_quote_status
Destructive

Mark an open quote accepted (the customer agreed; it can then become a sales order with convert_quote) or canceled (withdrawn or declined). A converted or canceled quote cannot change. Two-step: preview=true, then commit with the previewReceipt.

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>",
      "status": "<status>"
    },
    "name": "update_quote_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
statusYesaccepted or canceled.
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing is written until the commit call.
quoteIdYesQuote id (GUID) or number from list_invoices with documentKind=quote.
clientIdNoMust be omitted: quotes belong to the house, not to a 3PL client.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 2: the receipt returned by the preview call. Supply with a fresh idempotencyKey to commit.

Output Schema

NameRequiredDescriptionDefault
okNo
numberNo
statusNo
previewNo
warningsNo
expiresAtNo
invoiceIdNo
totalAmountNo
actionItemIdNo
confirmationNo
documentKindNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
approvalRequiredNo
approvalRuleNameNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false; the description adds the crucial behavior beyond that: the write is two-step, preview=true performs validation with no persistence, and the previewReceipt is single-use and must be paired with a fresh idempotencyKey. It also discloses the immutability constraint on converted/canceled quotes.

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?

Three short sentences, front-loaded with the state semantics, then the terminal-state constraint, then the two-step mechanic. No filler and nothing buried.

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?

With annotations and an output schema present, the description only needs to carry state semantics and workflow, and it does both completely; an agent knows the legal states, the preconditions for failure, and the exact call sequence.

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; the description adds the sequencing relationship between preview, previewReceipt, and idempotencyKey that the per-field schema text documents only in isolation. It does not add anything about clientId or quoteId, hence not a 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+resource ('Mark an open quote') and enumerates the exact target states ('accepted' or 'canceled'), plus the follow-on path via convert_quote. An agent can distinguish this from convert_quote 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 Guidelines5/5

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

Gives the condition for each state ('the customer agreed' for accepted, 'withdrawn or declined' for canceled) and an explicit prohibition ('a converted or canceled quote cannot change'), which tells the agent when this call will fail or must not be attempted.

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