Skip to main content
Glama

fx_convert_historical

Read-only

Convert amounts at historical exchange rates (invoice/bookkeeping) — Converts an amount (or one amount per date) between two currencies at the reference rate of each given date - for invoices, expense reports, tax and bookkeeping. Returns per-date rate and converted value (weekends/holidays use the latest earlier rate, rateDate shows which), totals and the effective average rate. Up to 100 dates (max 25 distinct dates when they span more than ~13 months); data back to 1999 for majors. Frankfurter blended reference rates (free for commercial use). Params: from, to (currency codes), dates (YYYY-MM-DD comma list); optional amount (default 1) or amounts (comma list, one per date). Price: $0.002 USDC (Base, via x402).

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": {
      "from": "<from>",
      "to": "<to>",
      "dates": "<dates>"
    },
    "name": "fx_convert_historical"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesUSD
fromYesEUR
datesYes2026-01-15,2026-03-31,2026-06-30

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Annotations already establish read-only, open-world, non-destructive behavior, and the description goes well beyond them: weekend/holiday fallback to the latest earlier rate with rateDate indicating which rate was applied, returned totals and effective average rate, hard limits (100 dates, 25 distinct dates beyond ~13 months), data coverage back to 1999, rate source (Frankfurter blended reference rates), and a per-call price of $0.002 USDC via x402. These are exactly the operational details an agent cannot infer from annotations.

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?

The definition is front-loaded with the core action and follows with return values, limits, source, and price in a logical order. There is minor redundancy — the invoice/bookkeeping framing appears in the title and again in the body — but no sentence is wasted.

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?

With no output schema, the description carries the return-value burden itself and does so: per-date rate, converted value, totals, and average rate are all named. Combined with date limits, rate provenance, and pricing, an agent has everything needed to call and interpret this tool.

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 already 100%, and the schema descriptions are only bare examples, so the description usefully clarifies that from/to are currency codes and dates is a YYYY-MM-DD comma-separated list. However, it also advertises optional `amount` (default 1) and `amounts` (one per date) parameters that do not appear in the input schema at all, creating ambiguity about whether such arguments will be accepted.

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 names a specific verb and resource — converting amounts at historical exchange rates on a per-date basis — and scopes it to invoice/bookkeeping use. It implicitly separates itself from single-rate siblings by emphasizing one amount per date and per-date reference rates, though it never names those siblings directly.

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?

Use contexts are given ("for invoices, expense reports, tax and bookkeeping"), which tells the agent the scenario but not the decision rule. There is no explicit guidance on when to prefer a current-rate tool like fx_rate over this one, nor any stated preconditions or exclusions.

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