Skip to main content
Glama

Create Quote

create_quote

Draft a quote for a customer — the Quotes page's New quote. Lines are priced from the price book for that customer unless you give unitPrice; the preview shows the totals after discounts and tax. The quote is numbered and saved as open; nothing is reserved or sent. update_quote_status marks it accepted, and convert_quote turns it into a sales order or 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": {
      "lines": "<lines>"
    },
    "name": "create_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoNote shown to the customer.
linesYesItems to quote (1-500). Each needs exactly one of itemSku, itemUpc or itemId, and a quantity; unitPrice and uomId are optional.
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.
storeIdNoStore id (GUID) from list_warehouses (stores[].storeId).
clientIdNoMust be omitted: quotes belong to the house, not to a 3PL client.
customerIdNoCustomer id (GUID) from lookup_business_partners. Give exactly one customer argument.
validUntilNoValid until (ISO date). Defaults to 15 days from now.
warehouseIdNoAlternative to storeId when the warehouse has exactly one store.
customerNameNoCustomer name (exact match). A name that matches no customer is kept as free text.
internalNoteNoInternal note (never shown to the customer).
customerEmailNoCustomer email (exact match).
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.8/5.0
Behavior5/5

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

Beyond readOnlyHint=false/destructiveHint=false, it discloses what actually happens: the quote is numbered and saved as open, nothing is reserved or sent, and nothing is written during preview. It also explains the required idempotencyKey pairing with previewReceipt — the idempotency mechanism behind idempotentHint=false — which the annotations alone do not convey.

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, then side effects, then follow-up tools, then the two-step rule — the ordering matches how an agent needs the information. It is dense but nearly waste-free; the closing two-step sentence partially restates the preview/previewReceipt parameter docs, which is the only slack.

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 13-parameter mutation with a required preview/commit handshake, the description covers what is written, what is not, pricing resolution, and the downstream tools. An output schema exists so return values need not be explained, and the annotations carry the safety profile; nothing an agent needs to invoke this correctly 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 field docs already carry the per-parameter weight and baseline is 3. The description adds cross-parameter meaning the schema does not: the preview→previewReceipt→fresh-idempotencyKey chain, the price-book-versus-unitPrice decision at commit time, and that a free-text customerName is a fallback rather than an error.

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 ('Draft a quote for a customer') and anchors it to the UI surface ('the Quotes page's New quote'), then names the siblings it is not: update_quote_status marks accepted, convert_quote converts. An agent can distinguish it from those without opening any 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 explicit sequencing ('Two-step: preview=true, then commit with the previewReceipt') and names the follow-up tools and when they apply. It also states the pricing default and the unitPrice override condition, so both the when and the how are covered.

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