Skip to main content
Glama

Currencies: One currency over time

fx_getCurrencyHistory
Read-onlyIdempotent

One currency over time

One currency's rate on every bulletin between start and end (default: the last 30 days; at most 366 days). Use for how a currency's official rate moved over days or months, e.g. USD/TRY over the last month.

GET /v1/fx/rates/{code} on Currencies (SBX-FX). Costs 1 credit per call.

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": {
      "code": "<code>"
    },
    "name": "fx_getCurrencyHistory"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoYYYY-MM-DD. Default: today.
codeYesISO 4217 code, e.g. USD.
startNoYYYY-MM-DD.
sourceNo`tcmb` (default: Turkish central bank, TRY rates since 2005) or `ecb` (European Central Bank, EUR rates since 1999).tcmb

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/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 openWorld, so the safety profile is covered. The description adds genuinely non-derivable context: the underlying endpoint (GET /v1/fx/rates/{code}), a cost of 1 credit per call, the default 30-day window, and the 366-day cap. It does not describe the response shape or pagination, which is the remaining gap.

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?

Three short blocks: purpose, usage with example, then endpoint/cost. The constraint and default are front-loaded and nothing is padded. The opening line duplicates the title, which is minor waste but harmless.

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 four-parameter read tool with no output schema, the definition covers what to request, the default and maximum time span, the data source, and the cost of calling. The only missing piece is what the returned bulletin series looks like, which an agent would otherwise have to discover by calling.

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 baseline would be 3; the description earns an extra point by supplying range semantics the schema omits: the default window is the last 30 days and the span is capped at 366 days. It does not add anything about `source` or `code` beyond the schema, but those are already fully documented.

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?

"One currency's rate on every bulletin between `start` and `end`" states a specific resource (a single currency's rate series) and a specific retrieval shape (one value per bulletin). It implicitly separates itself from fx_listRates/fx_convertCurrency by emphasizing a historical series for one code, but it never names a sibling, so the differentiation is inferential rather than explicit.

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

Usage Guidelines4/5

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

"Use for how a currency's official rate moved over days or months, e.g. USD/TRY over the last month" gives a clear when-to-use context with a concrete example. It also states the window bound (at most 366 days). It stops short of naming an alternative tool or stating when-not to use it (e.g. single-date lookups or latest rate).

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