Skip to main content
Glama

Convert Quote

convert_quote
Destructive

Turn a quote into the next document — the Quotes page's Generate sales order / Generate invoice. into=sales_order (accepted quotes only) creates a draft sales order with the quote's lines, marks the quote converted, and emails the customer that the order was created, as the app does. into=invoice creates a draft invoice with the quote's lines and leaves the quote as it is; issue it with issue_invoice. 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>",
      "into": "<into>"
    },
    "name": "convert_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
intoYessales_order or invoice.
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
quoteIdNo
warningsNo
expiresAtNo
invoiceIdNo
totalAmountNo
actionItemIdNo
confirmationNo
documentKindNo
salesOrderIdNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
approvalRequiredNo
approvalRuleNameNo
idempotentReplayNo
salesOrderNumberNo

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?

Beyond the annotations (destructiveHint=true, openWorldHint=true, idempotentHint=false), it discloses the consequential side effects an agent cannot see elsewhere: the quote is marked converted and the customer is emailed on the sales_order path, whereas the invoice path is non-destructive to the quote. It also flags the mandatory two-step write with a single-use previewReceipt, which directly explains the non-idempotent behavior declared in annotations.

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?

Content is front-loaded and the mode-specific behavior is grouped per mode, with the two-step rule last. The opening clause ('the next document — the Quotes page's Generate sales order / Generate invoice') is slightly cluttered and carries UI-label detail that adds little for an agent.

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 destructive, multi-step write with an output schema, the description covers preconditions, side effects, ordering, and the sibling needed to finish the invoice path. Return-value details are correctly left to the output schema, so nothing an agent needs to call this safely 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 schema already documents preview, previewReceipt, idempotencyKey, and clientId. The description still adds meaning by attaching the 'accepted quotes only' precondition to the into value and by framing preview/commit as an ordered pair rather than independent flags.

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?

The description names a specific verb and resource (turn a quote into a sales order or invoice) and explicitly separates the two modes with their distinct outcomes. It also names the sibling used for the follow-up step (issue_invoice), so an agent can distinguish it from create_quote, convert_rfp_to_purchase_order, and others 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?

It states when each mode applies — into=sales_order is limited to accepted quotes and marks the quote converted, while into=invoice leaves the quote unchanged and requires issue_invoice afterwards. It also spells out the required preview-then-commit sequence, leaving nothing about invocation order to inference.

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