Skip to main content
Glama

Price quote

calculate_price
Read-onlyIdempotent

Use this when the user asks what one or more mugs cost, with or without shipping. Exact price in EUR: first mug full price, every additional mug discounted (also across different designs), shipping cost or free shipping, total. Same maths as the shop checkout, before any promo code.

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": {
      "quantity": "<quantity>"
    },
    "name": "calculate_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
quantityYesNumber of mugs in one order

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so safety is covered. The description adds real behavioural context beyond them: the discount applies across different designs, shipping may be free, the output is an exact EUR total, and promo codes are excluded — telling the agent the quoted figure can differ from a checkout with a coupon.

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 compact sentences, front-loaded with the trigger condition, then the pricing mechanics. No filler, and the 'before any promo code' caveat is placed last where it functions as a qualifier on the result.

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 single-parameter read-only pricing tool with no output schema, the description supplies everything needed: what it computes, the discount rule, shipping treatment, currency, and the promo-code exclusion. The only unstated detail is the exact numeric breakdown format, which is minor for a quote tool.

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 100% and the single parameter already documents itself as 'number of mugs in one order' with 1–500 bounds. The description nevertheless adds meaning the schema lacks: quantity spans multiple designs, not just one product, which materially changes how an agent should gather the input.

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 precise verb and resource ('what one or more mugs cost'), including the pricing model: full price for the first mug, a discount on each additional mug, plus shipping or free shipping, totalled in EUR. This is immediately distinguishable from siblings such as get_shop_overview or get_delivery_estimate, which don't compute prices.

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 an explicit trigger ('when the user asks what one or more mugs cost, with or without shipping') and scopes results to 'before any promo code'. It doesn't name a sibling alternative or state when not to use it, but for this family of tools there isn't an obvious overlapping price calculator.

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