Skip to main content
Glama

WritersLogic business agents

quote-normalize

Normalise supplier quotes to one comparable unit price (currency, unit of measure, tax, discount) — Converts up to 200 quoted prices to a net price per base unit in one currency, for an agent comparing supplier quotes. Each line: price for per units of a unit of measure, optional tax-inclusive flag and rate, optional percentage discount, any currency. Uses only the caller's exchange rates and unit factors (1 uom = factor base units); a currency without a rate, a unit without a factor, or a tax

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": {
      "targetCurrency": "<targetCurrency>",
      "lines": "<lines>"
    },
    "name": "quote-normalize"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYes
baseUomNoName of the base unit prices are normalised to (default "unit").
fxRatesNo
uomFactorsNo
targetCurrencyYesISO 4217 alphabetic code, upper case.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that up to 200 prices are converted, that only the caller's exchange rates and unit factors are used, and that missing rates or factors are failure conditions. However, the final failure-condition sentence is truncated ('or a tax'), and it does not explain return shape, rounding, or whether errors are per-line or whole-request.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded and reasonably sized, but it is structured as one long sentence and ends abruptly mid-clause. The core idea is clear, yet the truncation makes the final thought incomplete and reduces the value of the wording.

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

Completeness2/5

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

For a five-parameter computation tool with no output schema and no annotations, the description should be more complete. It covers the main conversion concept but omits or truncates important behavioral details such as error handling, result structure, and edge-case treatment, leaving the agent to infer too much.

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 description coverage is low at 40%, so the description should compensate. It adds a useful conceptual model: each line is a price for `per` units of a unit of measure, tax can be inclusive with a rate, discounts are optional, and unit factors mean '1 uom = factor base units'. It still leaves some parameter-level behavior implicit or incomplete, especially around failure handling and optional field interactions.

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 clearly states a specific verb and resource: normalise supplier quotes to a comparable net unit price across currency, unit of measure, tax, and discount. It scopes the operation to an agent comparing supplier quotes, which makes the purpose distinct. It does not explicitly differentiate from any sibling tool, but the purpose is still unambiguous.

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?

The phrase 'for an agent comparing supplier quotes' gives implied usage context, but there is no explicit when-to-use, when-not-to-use, or alternative guidance. An agent can infer the intended scenario but must decide on its own whether this is the right tool for a given comparison task.

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