Skip to main content
Glama

StatCite — Verified Economic Statistics

Convert currencies with official reference rates

fx_convert
Read-onlyIdempotent

Convert an amount between currencies using ECB daily reference rates (~30 majors, any date since 1999), the legal US dollar peg for currencies with a sourced hard peg (BBD, XCD, BZD, AWG, BMD, KYD, SAR, QAR, OMR), which is exact and cites the issuing authority, or, for ~90 other currencies (JMD, KES, …), official annual-average rates from the World Bank. With the method and citations stated explicitly. Pass date='YYYY-MM-DD' for daily or 'YYYY' for annual-average conversion. Beside the numeric rate, rate_decimal gives the rate as a decimal string (the upstream ECB figure, or a computed rate rounded once to at least 12 significant digits), and on a bridged rate each leg names its kind (identity, peg, ecb or wb).

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>"
    },
    "name": "fx_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes3-letter ISO code, e.g. 'BBD'.
dateNo'YYYY-MM-DD' (daily, ECB set) or 'YYYY' (annual average). Default: latest.
fromYes3-letter ISO code, e.g. 'USD'.
amountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, open-world and non-destructive behavior, so the description's contribution is the sourcing and determinism story: which authority supplies each rate, that peg rates are exact and cite the issuing authority, and that computed rates are rounded once to at least 12 significant digits. It stops short of describing failure behavior for unsupported currency pairs or missing dates.

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 core action is front-loaded, but the text is a single sprawling run-on sentence with stacked parentheticals and a bare trailing fragment ('With the method and citations stated explicitly.'). Enumerating eight peg codes plus 'JMD, KES, …' adds bulk that a reader must wade through before reaching the date-format instruction.

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

Completeness4/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 correctly takes on the return-value burden, explaining that rate_decimal is a decimal string and that bridged rates name each leg's kind. Given four parameters and 75% schema coverage, the definition is nearly sufficient; only error and edge-case behavior is left implicit.

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 coverage is 75%, so the baseline is 3. The description's date-format guidance largely restates the schema's own 'YYYY-MM-DD'/'YYYY' wording; the only genuine addition is tying each date format to a distinct rate source. 'amount', 'from' and 'to' receive no elaboration beyond 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?

States a specific verb and resource (convert an amount between currencies) and then names the exact rate regimes it draws on — ECB daily reference, hard-peg sources, World Bank annual averages. No sibling in the list performs currency conversion, so an agent can identify this tool's job immediately.

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?

Gives concrete selection guidance: use date='YYYY-MM-DD' for daily ECB rates or 'YYYY' for annual-average World Bank rates, and the currency's regime determines which source is used. It does not state when *not* to use the tool (e.g., unsupported currencies or date ranges outside 1999+) or point to an alternative, so it falls short of a 5.

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.