Skip to main content
Glama
MCP Support & Quote Starter

MCP Support & Quote Starter

by alborotar

calculate_quote

Read-only

Calculates a single-currency quote from tax-exclusive minor-unit prices, applying an order discount before a caller-supplied tax/VAT rate.

Instructions

Calculate a single-currency quote from tax-exclusive integer minor unit prices. Apply an order discount before a single caller-supplied tax/VAT rate.

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

Input Schema

NameRequiredDescriptionDefault
itemsYes
taxBpsNoTax/VAT rate in basis points for the full discounted subtotal. Defaults to zero.
currencyYesCurrency of every line. No conversion.
discountBpsNoOrder discount in basis points, e.g. 1250 for 12.50%. Defaults to zero.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description contributes the meaningful behavioral detail that the discount is applied before the tax rate. It omits behavior that matters for a money tool: rounding mode and precision of the computed totals, and whether the output is expressed in minor units.

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?

Two dense sentences, front-loaded with the core action and scoping constraints, with zero filler. Order-of-operations, arguably the most error-prone detail, is stated last but kept within the same compact block.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has four parameters, a nested-free but constraint-heavy schema, and no output schema, so the description carries the burden of explaining the result — yet it says nothing about the returned structure or rounding behavior. For a financial calculation that agents will chain into downstream steps, that is a real gap.

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 roughly 3, but the description adds real meaning beyond the schema: it states prices are tax-exclusive and that the discount is applied to the subtotal before the single tax rate, which explains how discountBps and taxBps interact. Item-level fields like description and quantity are left to the schema.

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 names a specific verb and resource ('Calculate a single-currency quote') and immediately pins down the input domain: tax-exclusive integer minor-unit prices. It also states the computation order (discount before tax), so an agent knows exactly what this tool produces without opening the schema.

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 rather than stated: the description makes clear this is a pricing/total calculator, and the sibling tools (classify_ticket, draft_support_reply, summarize_daily_tickets) are unrelated enough that no explicit routing is needed. However, there is no explicit when-to-use or when-not-to-use statement, and the constraint 'single-currency, no conversion' is only conveyed indirectly.

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