Skip to main content
Glama

Quote prices

quote_prices
Read-onlyIdempotent

What these lines would cost this customer on this date under the price rules and the customer's price level — the same evaluator the order, estimate and invoice forms use, so the quote IS the price. Each line names the rule that set it (applied, basis). A line nothing can price comes back with unit_price null, never $0.00 — ask the user for a price.

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": "quote_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoISO date the price is for. Default today — a rule can start and end.
linesYes
entity_idNoAnother entity in the same books (ids from `list_entities`). Leave out to use the entity the person is working in.
customer_idNoLeave out to price for a customer with no special pricing.

Output Schema

NameRequiredDescriptionDefault
dateNo
noteNoWhy the result was truncated, when it was.
linesNo
customerNo
truncatedNoPresent and true when the result was too large to return in full. Treat it as a partial answer.
price_levelNo
total_availableNoHow many rows existed before truncation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds genuinely new behavioral facts: results are guaranteed consistent with the order/estimate/invoice evaluator, each line exposes the rule that set it via `applied`/`basis`, and an unpriceable line returns null rather than a misleading $0.00.

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 what the tool computes, then the rule attribution, then the null-price edge case. The emphatic aside ("so the quote IS the price") is slightly chatty but reinforces the key guarantee.

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?

An output schema exists, so return shape need not be explained; the description covers what matters behaviorally — evaluator parity, per-line rule provenance, and the null-versus-zero contract with the follow-up action. Nothing an agent needs in order to call 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 75%, so the baseline is 3, but the description adds meaning on top: the date matters because a rule can start and end, and pricing depends on the customer's price level rather than a generic lookup. It does not restate base_price/quantity override behavior, which the schema already covers.

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 ("what these lines would cost") plus the exact evaluator semantics, and the scope (customer's price level, given date) distinguishes it from neighbouring tools like create_price_rule and quote_sales_tax.

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 makes the use case concrete: price the lines the same way the order, estimate and invoice forms do, so this is a pre-commitment pricing check. It also gives an explicit fallback instruction when a line cannot be priced ("ask the user for a price"). It stops short of naming when to prefer this over a sibling such as create_price_rule or quote_sales_tax.

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