Skip to main content
Glama

Price a set of items

quote
Read-onlyIdempotent

Exact prices for a set of SKUs and quantities, as the Standard Blanks cart would charge them: each line's unit price (set by its style's total units), the merchandise subtotal, shipping, and the total before tax. Pass ship_to_zip for that ZIP's shipping and estimated delivery dates (estimates, not guarantees); add need_by (YYYY-MM-DD) with it to learn whether the order is estimated to arrive by that date, and which lines would miss it; without a ZIP, shipping assumes a contiguous-US address and no dates are given. Sales tax is calculated at checkout. Creates nothing.

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": {
      "items": "<items>"
    },
    "name": "quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes1–40 lines.
need_byNoDate the order is needed by, YYYY-MM-DD. Answered only with ship_to_zip.
ship_to_zipNo5-digit US ZIP code.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / need_by
      Added value: +{
      +  "description": "Date the order is needed by, YYYY-MM-DD. Answered only with ship_to_zip.",
      +  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +  "type": "string"
      +}
  2. 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, the description explains that pricing is driven by a style's total units, that delivery dates are estimates rather than guarantees, that need_by is only answered with a ZIP, and that tax is handled at checkout. This is rich operational context for a read-only pricing tool.

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 front-loaded with the core behavior and then layers conditional details efficiently. Every clause contributes useful information, with no filler or repetition.

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 three-parameter pricing tool with no output schema, the description explicitly lists the returned pricing components and explains the shipping and delivery-date behavior. It is complete enough for an agent to invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is already 100%, the description adds conditional meaning: ship_to_zip unlocks ZIP-specific shipping and estimated delivery dates, need_by is only meaningful alongside a ZIP, and omitting the ZIP changes the shipping assumption and removes dates entirely.

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 gives a specific verb and resource: it returns exact prices for a set of SKUs and quantities, structured like a Standard Blanks cart. It clearly distinguishes itself from cart-building siblings with 'Creates nothing.'

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 explains when to pass ship_to_zip, when to add need_by, and what happens without a ZIP, including the contiguous-US shipping assumption. It does not explicitly name build_cart as the alternative for actual cart creation, but 'Creates nothing' makes the boundary clear.

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