Skip to main content
Glama

Convert Quote to Order

convert_quote_to_order
Destructive

Convert a sales quote into a sales (outbound) order once the customer accepts it. Item lines become order lines and reserve the stock (the outbound amount goes up); the quote is marked Accepted and linked to the order. Free-text lines and unit-tracked items (which need lot picks in the app) are not put on the order and are listed in the result. A quote can only be converted once.

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

Input Schema

NameRequiredDescriptionDefault
quoteIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

The description discloses important behavior beyond the annotations: item lines become order lines, stock is reserved, outbound amounts increase, the quote is marked Accepted and linked to the order, and free-text or unit-tracked lines are skipped and reported. The destructiveHint annotation is consistent with this mutation, though the description does not discuss permissions, failure modes, or whether conversion can be undone.

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?

The description is four tight sentences that front-load the conversion action and then cover side effects and edge cases. Every sentence adds useful information without repetition.

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 one-parameter mutation with no output schema, the description gives a strong account of preconditions, side effects, and skipped lines. It could go further by explaining the return payload or error cases, but it is complete enough to call the tool 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?

There is only one parameter and the schema description coverage is 0%, so the description must carry meaning for quoteId. It implies that the quote must exist, be accepted, and not already have been converted, but it does not explain the identifier format or how to obtain it beyond the obvious name.

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 states a specific verb and resource: converting a sales quote into a sales (outbound) order. It clearly distinguishes this from creating an order directly by tying it to an accepted quote and describing the resulting order linkage.

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?

It gives a clear usage condition: convert only once the customer accepts the quote, and notes that a quote can only be converted once. It does not explicitly name alternatives such as create_order, but the context is strong enough for an agent to select this tool correctly.

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