Skip to main content
Glama

save_quote

Idempotent

Saves a product quote by recomputing the price from the same inputs used for quoting, so caller-supplied prices are never stored; an idempotency key makes retries safe.

Instructions

Save a quote for the product. Needs the quotes:write scope.

    Takes the same product inputs as quote_product and recomputes the price here;
    it never stores a price supplied by the caller.
    

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": {
      "product_name": "<product_name>",
      "price_usd": "<price_usd>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "save_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
zoneNoAs in quote_product.
categoryNoAs in quote_product.
price_usdYesUS list price, in USD.
weight_lbNoAs in quote_product.
product_urlNoProduct page.
product_nameYesProduct name, as shown.
idempotency_keyYesA fresh random value (e.g. a UUID) for each distinct save. Reuse it only to retry the same save: a retry with the same key returns the original result and writes nothing new.

Output Schema

NameRequiredDescriptionDefault
quoteYesThe quote as computed by this server at save time. Prices supplied by the caller are never stored; the server recomputes from the product inputs.
quote_idYesIdentifier of the stored quote.
created_atYesWhen it was first saved (ISO-8601, UTC).
product_urlNo
product_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true), the description adds real behavioral context: the caller must hold the quotes:write scope, and server-side price recomputation means caller-supplied prices are never trusted or stored. This is exactly the kind of trust/permission information annotations cannot convey. The retry semantics of idempotency_key are already in the schema, so no credit is lost there.

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 short sentences, front-loaded with the action, then the auth requirement, then the key behavioral guarantee. No redundant restatement of the name, though the scope sentence and the recompute sentence could have been merged and the extra whitespace adds nothing.

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?

An output schema exists so return values need no explanation, and the description covers the two things structured fields cannot: the required OAuth scope and the server-side price authority. What's missing is whether this creates or upserts a quote and how the required price_usd relates to the recomputed price, which are the remaining ambiguities for a 7-parameter mutation.

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 the baseline is 3 and the schema already defines every parameter including the idempotency_key retry contract. The description only adds the fact that pricing is recomputed server-side, which is useful but also raises an unresolved question: price_usd is a required parameter yet the description says a caller-supplied price is never stored, leaving its actual role unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ('Save a quote for the product') and explicitly relates it to the sibling quote_product by taking the same product inputs while recomputing price server-side. An agent can tell this is the persistence step rather than the preview step, though what a 'quote' is attached to (account, catalog, workspace) is left implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied by the comparison to quote_product and the stated quotes:write scope requirement, which signals a mutating persist operation rather than a read-only pricing call. However, it never says explicitly 'use this when you want to persist, use quote_product for a preview,' nor does it state what happens if a quote for the same product already exists.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.