Skip to main content
Glama

Get foreign-exchange rates

fx_get_rates
Read-onlyIdempotent

Return current indicative FX rates for one base and optional quote currencies. Use it for the rate now; fx_get_rate_history gives one rate per day and fx_get_rate_bars gives intraday bars.

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": {
      "base": "<base>"
    },
    "name": "fx_get_rates"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseYesBase currency as an ISO 4217 code in capitals, for example `USD`. Each rate is units of the quote currency per one base.
currenciesNoQuote currencies: ISO 4217 codes in capitals, 1 to 64, no repeats and not the base, for example ["EUR", "JPY"]. Leave out for every currency served.

Output Schema

NameRequiredDescriptionDefault
baseYes
ratesYes
market_sessionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / base / description
      Added value: +"Base currency as an ISO 4217 code in capitals, for example `USD`. Each rate is units of the quote currency per one base."
    • addedInput schema / properties / currencies / description
      Added value: +"Quote currencies: ISO 4217 codes in capitals, 1 to 64, no repeats and not the base, for example [\"EUR\", \"JPY\"]. Leave out for every currency served."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description still adds the material qualifier "indicative" rates, which tells the agent these are reference quotes rather than executable prices. It stops short of saying how fresh the snapshot is or how often it refreshes.

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?

Two sentences, zero filler. The core behavior comes first and the disambiguation against siblings follows, which is the right order for an agent scanning definitions.

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?

For a two-parameter read tool with a full schema, complete annotations, and an output schema, the description covers purpose, disambiguation, and the indicative-rate caveat. Only snapshot timing/freshness is unaddressed, a minor gap given how rich the structured fields are.

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 description coverage is 100%, with the base/quote direction and the 1–64 code list already documented in the schema. The description only restates that base is single and currencies optional, adding no syntax or semantics beyond the structured fields, so the baseline applies.

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?

"Return current indicative FX rates for one base and optional quote currencies" names a specific verb (return), a specific resource (FX rates), and the exact shape of the request (one base, optional quotes). It is immediately distinguishable from the history and bars siblings, which are named explicitly.

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?

"Use it for the rate now" states the selecting condition, and it names both alternatives with their distinguishing behavior (one rate per day vs intraday bars). An agent can route between all three tools without opening another schema.

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