Skip to main content
Glama
AllRates-Today

Central Bank Rates MCP Server

Get a bank's official published rates

get_official_rates
Read-only

Retrieve official published exchange rates from central banks and tax authorities for compliance, tax, customs, and accounting. Specify bank and optional date for point-in-time rates.

Instructions

Use this for OFFICIAL rates a specific institution published — 'what is the ECB rate for USD?', 'Bank of Japan official rate on 2026-03-14', 'HMRC rate for invoicing'. These are the fixed rates in force for compliance, tax, customs, and accounting — NOT live market rates. Omit date for the newest published table; give date (paid plans) for the table in force on that day (weekends/holidays roll back to the last published date — the response's rate_date says which). Omit source/target for the bank's full table { rates: [{ base, quote, type, value }] }; give both for one pair — cross-computed via the bank's own home currency when not directly published, flagged derived. For live mid-market rates use the @allratestoday/mcp-server package instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bankYesBank/authority code as returned by list_central_banks (lowercase, e.g. 'ecb', 'fed', 'boj', 'hmrc', 'cbsl'). Call list_central_banks first if unsure — codes are short abbreviations of the institution, not country codes.
dateNoOptional YYYY-MM-DD. Omit for the latest published table (all plans). A specific date requires a paid plan.
sourceNoOptional. With target, narrows to one pair.
targetNoOptional. With source, narrows to one pair.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A5/5.0
Behavior5/5

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

Annotations already mark readOnly and openWorld, and the description adds behavior beyond that: weekend/holiday rollback to the last published date, a derived flag when cross-computed, paid-plan gating for date, and the response's rate_date field. This gives the agent operational knowledge not inferable 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.

Conciseness5/5

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

Four dense sentences, front-loaded with the purpose and followed by examples, parameter semantics, and an alternative. No filler or redundancy; each sentence adds a distinct operational fact.

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 tool with no output schema, the description covers the return shapes ({rates:[...]} and derived flags), edge cases (weekends/holidays, paid plans), input selection, and the alternative for live rates. Sibling tools are not explicitly routed, but the scope is defined clearly enough that history/comparison/calendar tools are not confused with this point-in-time official rate lookup.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema coverage, the baseline is 3, but the description meaningfully enriches each parameter: bank codes are lowercase abbreviations (call list_central_banks first), date is optional and requires a paid plan for specific days, and source/target must be given together to narrow to one pair. It also explains output shape implications, which the schema does not.

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 leads with a specific verb and resource: getting official published rates from a specific institution. Concrete examples ('ECB rate for USD', 'HMRC rate for invoicing') and the explicit contrast with live market rates make the tool's purpose unmistakable and distinguish it from other rate-related tools.

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

Usage Guidelines5/5

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

Explicitly says when to use this tool ('Use this for OFFICIAL rates...') and when not ('NOT live market rates'), and names the alternative package for live mid-market rates. It also gives parameter-based guidance: omit date for latest, supply date for a specific table, omit source/target for full table, provide both for one pair.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.