Skip to main content
Glama

Get Exchange Rates

get_exchange_rates
Read-only

Fetch real-time exchange rates for a base currency for today, a specific UTC date, or a date range, with optional target currency filters.

Instructions

Fetch exchange rates from Frankfurter API in real time. Supports latest, a specific date, or a time series via startDate/endDate. Dates are in UTC and cannot be in the future.

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_exchange_rates"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoBase currency code (e.g., USD). Defaults to EUR if omitted by the upstream API.
dateNoSpecific date in UTC (YYYY-MM-DD).
endDateNoEnd date for time series (YYYY-MM-DD). If omitted, upstream returns up to today (UTC).
symbolsNoTarget currency codes (e.g., ["KRW","JPY"]).
startDateNoStart date for time series (YYYY-MM-DD).

Output Schema

NameRequiredDescriptionDefault
dataNo
sourcesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

readOnlyHint=true already covers the safety profile, so the description is free to add value elsewhere — and it does, disclosing that data is fetched live from Frankfurter and that dates are UTC and rejected if in the future. That future-date rejection is a real validation constraint not stated anywhere in the schema, though return shape and failure behavior are left to the output schema.

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, mode information front-loaded and the UTC constraint appended; every clause carries information an agent would otherwise lack. No repetition of schema text and no filler.

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 zero required parameters, full schema coverage and an output schema, the description only needs to explain the retrieval modes and date constraints — which it does. Minor gaps remain around what happens when symbols or base are invalid, but nothing essential to calling it correctly is missing.

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%, so all five parameters (including the base-currency default and the endDate default of "today") are already documented in structured form. The description only reinforces that startDate/endDate form a time series, adding no format or edge-case detail beyond the schema, so the baseline of 3 applies.

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 ("Fetch exchange rates") plus the upstream source and the three retrieval modes (latest, specific date, time series), which lets an agent understand what it will get. It does not distinguish itself from the plausible sibling list_exchange_rate_currencies, so it stops short of a 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?

The phrase "Supports latest, a specific date, or a time series via startDate/endDate" implicitly tells the agent which parameter combination selects which mode, which is useful. However, there is no explicit when-to-use/when-not guidance and no routing to alternatives such as list_exchange_rate_currencies, so usage is only implied.

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