Skip to main content
Glama

Convert at the ECB rate

convert_currency
Read-only

The European Central Bank reference rate for a currency on a date (the last published rate on or before it), and the converted amount.

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": {
      "amount": "<amount>",
      "from": "<from>",
      "to": "<to>",
      "date": "<date>"
    },
    "name": "convert_currency"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesISO 4217 code to convert into, e.g. EUR
dateYesYYYY-MM-DD, usually the receipt date
fromYesISO 4217 code of the amount's currency, e.g. USD
amountYesThe amount to convert, in the from currency

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / amount / description
      Added value: +"The amount to convert, in the from currency"
    • addedInput schema / properties / from / description
      Added value: +"ISO 4217 code of the amount's currency, e.g. USD"
    • addedInput schema / properties / to / description
      Added value: +"ISO 4217 code to convert into, e.g. EUR"
  2. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description usefully discloses the date-resolution rule (fall back to the last published rate), which is non-obvious behavior, but it omits what happens for unsupported currencies or non-published dates, and says nothing about rounding or rate precision.

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?

A single efficient sentence with no filler, and the key fallback rule is stated inline. Its only weakness is being framed as a description of output rather than of the action the tool performs.

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?

With no output schema, the description carries the burden of describing the result; it names the two return values (rate and converted amount) but not their shape, rounding, or error cases. For a four-required-parameter conversion tool it is adequate but leaves practical gaps such as supported currency coverage.

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 description coverage is 100%, so the baseline is 3. The description adds real meaning beyond the schema by clarifying that 'date' selects the last published rate on or before that day, which the schema's 'usually the receipt date' does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description is a noun phrase naming the resource (ECB reference rate plus converted amount) rather than a verb-led statement of what the tool does; the name and title carry the 'convert' action. It adds a precise detail (the last published rate on or before the date) but gives no differentiation from the sibling tools build_receipt_spreadsheet or scan_receipts_on_website, so the agent must infer its role.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no mention of prerequisites, and no alternatives. It does not warn that only ECB-covered currencies have rates, which matters because the schema pattern accepts any three-letter code.

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