Skip to main content
Glama

Official central-bank rate

get_official_rate
Read-only

The official exchange rate per US dollar from central banks whose rates are hard for software to read, e.g. 'Bank of Ghana USD/GHS today'. Covers the Bank of Ghana, Central Bank of Nigeria, Bank of Botswana, Bank of Zambia, Banco de Moçambique, Reserve Bank of Malawi, Reserve Bank of Zimbabwe, Banque Centrale du Congo and other institutional fixings, read every hour from the publishers' own pages. Free: the latest rate with publisher, fixing date, source and whether it is fresh. Full answer (USD 0.25 per call by x402 in USDC on Base, or a paid key): up to 90 days of daily history and every publisher on record. Says so when no rate is on record; never estimates. The same data is GET https://swapeazi.io/api/v1/official-rates?currency=GHS.

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": {
      "currency": "<currency>"
    },
    "name": "get_official_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoDays of history for the full answer, 1 to 90 (default 30).
currencyYesISO code, e.g. GHS, NGN, BWP, ZMW, MZN, MWK, ZWG, CDF.
access_keyNoA paid key (rk_...), if not sent as a Bearer header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, the description discloses data provenance ('read every hour from the publishers' own pages'), cost model ($0.25 per call via x402 in USDC on Base, or a paid key), the exact contents of the free tier, and failure behavior ('says so when no rate is on record; never estimates'). That is context the annotations cannot carry and materially affects how an agent should plan a call.

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 scope and the free/paid split are front-loaded, then coverage, then the endpoint echo. It is dense but each clause carries information; the publisher enumeration is long but legitimately defines coverage. Slightly overstuffed in a single paragraph.

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 still specifies the return fields for the free tier (rate, publisher, fixing date, source, freshness) and the paid tier (history plus all publishers), plus the failure mode. For a 3-parameter read-only tool this is complete enough to call correctly on first attempt.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning: days is bracketed to the paid tier (1–90 of daily history), while the free path returns only the latest fixing. That tier-to-parameter linkage is not derivable from the schema text alone.

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 opens with a precise verb+resource ('official exchange rate per US dollar from central banks') and even gives a canonical query example, plus enumerates the covered institutions. An agent knows exactly what this fetches. It does not explicitly name the sibling it is not (e.g. get_corridor_rates), so it stops short of 5.

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?

Usage is implied through the free-versus-full-answer split and the days-of-history condition, which tells an agent when the paid path applies. However, there is no explicit statement of when to choose this over get_corridor_rates or get_rate_receipt; the agent must infer the boundary.

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