Skip to main content
Glama

Get exchange rates

get_rates
Read-only

Latest or dated reference rates. Provider rates retain published digits on their own base. Returns rate records; if any provider fails, returns {rates,errors} preserving successes. Retry only failed providers.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_rates"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoBase currency or asset code. Default EUR.
dateNoSingle day YYYY-MM-DD. Omit for the latest rates.
quotesNoRequested currency codes. Supply whenever known; omit only to request all.
providerNoProvider or dataset keys, e.g. ['ECB','NBP.B']; omit for blended rates.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / provider / description
      Previous value: -"Institution keys, e.g. ['ECB','HMRC']; omit for blended rates."New value: +"Provider or dataset keys, e.g. ['ECB','NBP.B']; omit for blended rates."
    • changedInput schema / properties / provider / items / maxLength
      Previous value: -8New value: +16
  2. Changed4 schema fields changed
    • changedInput schema / additionalProperties
      Previous value: -falseNew value: +true
    • changedInput schema / properties / provider / description
      Previous value: -"Provider key or keys, e.g. ECB or ['ECB', 'HMRC']. Serves published rates instead of the blend; a date inside a weekly, monthly or quarterly provider's period returns the rate in force. Keys at https://frankfurter.dev/providers/."New value: +"Institution keys, e.g. ['ECB','HMRC']; omit for blended rates."
    • removedInput schema / properties / providers
      Removed value: -{
      -  "description": "Alias for `provider` accepting multiple provider keys.",
      -  "items": {
      -    "maxLength": 8,
      -    "minLength": 2,
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • changedInput schema / properties / quotes / description
      Previous value: -"Currency or asset codes to return; omit for all."New value: +"Requested currency codes. Supply whenever known; omit only to request all."
  3. Changed9 schema fields changed
    • changedInput schema / properties / base / description
      Previous value: -"ISO 4217 base currency. Default EUR."New value: +"Base currency or asset code. Default EUR."
    • removedInput schema / properties / base / maxLength
      Removed value: -3
    • removedInput schema / properties / base / minLength
      Removed value: -3
    • addedInput schema / properties / base / pattern
      Added value: +"^[A-Za-z0-9]{3,5}$"
    • changedInput schema / properties / quotes / description
      Previous value: -"ISO 4217 quote codes to return; omit for all."New value: +"Currency or asset codes to return; omit for all."
    • addedInput schema / properties / quotes / items / $ref
      Added value: +"#/properties/base"
    • removedInput schema / properties / quotes / items / maxLength
      Removed value: -3
    • removedInput schema / properties / quotes / items / minLength
      Removed value: -3
    • removedInput schema / properties / quotes / items / type
      Removed value: -"string"
  4. Changed1 schema field changed
    • changedInput schema / properties / provider / description
      Previous value: -"Provider key or keys, e.g. ECB or ['ECB', 'HMRC']. Serves published rates instead of the blend; a date inside a monthly or quarterly provider's period returns the rate in force. Keys at https://frankfurter.dev/providers/."New value: +"Provider key or keys, e.g. ECB or ['ECB', 'HMRC']. Serves published rates instead of the blend; a date inside a weekly, monthly or quarterly provider's period returns the rate in force. Keys at https://frankfurter.dev/providers/."
  5. Changed6 schema fields changed
    • changedInput schema / properties / provider / description
      Previous value: -"Provider key, e.g. UST for U.S. Treasury reporting rates. Serves that institution's published rates instead of the blend; a date inside a monthly or quarterly provider's period returns the rate in force. Keys at https://frankfurter.dev/providers/."New value: +"Provider key or keys, e.g. ECB or ['ECB', 'HMRC']. Serves published rates instead of the blend; a date inside a monthly or quarterly provider's period returns the rate in force. Keys at https://frankfurter.dev/providers/."
    • addedInput schema / properties / provider / items
      Added value: +{
      +  "maxLength": 8,
      +  "minLength": 2,
      +  "type": "string"
      +}
    • removedInput schema / properties / provider / maxLength
      Removed value: -8
    • removedInput schema / properties / provider / minLength
      Removed value: -2
    • changedInput schema / properties / provider / type
      Previous value: -"string"New value: +"array"
    • addedInput schema / properties / providers
      Added value: +{
      +  "description": "Alias for `provider` accepting multiple provider keys.",
      +  "items": {
      +    "maxLength": 8,
      +    "minLength": 2,
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  6. Changed1 schema field changed
    • addedInput schema / properties / provider
      Added value: +{
      +  "description": "Provider key, e.g. UST for U.S. Treasury reporting rates. Serves that institution's published rates instead of the blend; a date inside a monthly or quarterly provider's period returns the rate in force. Keys at https://frankfurter.dev/providers/.",
      +  "maxLength": 8,
      +  "minLength": 2,
      +  "type": "string"
      +}
  7. Changed5 schema fields changed
    • changedInput schema / properties / date / description
      Previous value: -"Single day YYYY-MM-DD. Mutually exclusive with start/end."New value: +"Single day YYYY-MM-DD. Omit for the latest rates."
    • removedInput schema / properties / end
      Removed value: -{
      -  "$ref": "#/properties/date",
      -  "description": "Range end YYYY-MM-DD (inclusive). Requires start and quotes."
      -}
    • removedInput schema / properties / providers
      Removed value: -{
      -  "description": "Provider keys. Omit for blended (default).",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • changedInput schema / properties / quotes / description
      Previous value: -"ISO 4217 quote codes. Required when start/end is set."New value: +"ISO 4217 quote codes to return; omit for all."
    • removedInput schema / properties / start
      Removed value: -{
      -  "$ref": "#/properties/date",
      -  "description": "Range start YYYY-MM-DD (inclusive). Requires end and quotes."
      -}
  8. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover read-only and open-world behavior, and the description adds real value on top: partial-failure semantics ({rates,errors} preserving successes), a retry policy, and the precision rule that provider rates keep their published digits on their own base. It still says nothing about pagination, rate limits, or provider-side auth.

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 short sentences, front-loaded with the core capability and followed by the two facts an agent most needs (return shape on failure, retry scope). No filler or restatement of the title.

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 carries the burden of describing the return shape, including the degraded {rates,errors} case. Complete for a read-only rate lookup, though it omits any pointer to the convert/list_providers alternatives.

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 100%, so all four parameters are already documented, including the blended-rates default when provider is omitted. The description only adds the precision nuance tied to provider/base, which is useful but marginal against a fully documented schema.

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 states the resource and scope precisely: reference rates, either latest or for a given date, with per-provider digits preserved. It does not name the sibling 'convert' or explain how this differs from a conversion call, so an agent must infer the boundary.

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 guidance is limited to failure handling ('Retry only failed providers') and the implicit latest-vs-dated choice. There is no explicit statement of when to call this instead of convert or list_providers, leaving selection to inference.

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.