Skip to main content
Glama

Get TCMB rate history

get_rate_history
Read-onlyIdempotent

Retrieve historical TCMB exchange rates for a currency as a daily, weekly, or monthly time series, including summary statistics like min/max dates, mean, and percentage change.

Instructions

Time series of one currency's TCMB rate (TRY per 1 unit) with summary statistics: first/last, min/max with dates, mean and % change. Ranges: daily up to 93 days, weekly up to 731, monthly up to 3660.

Input Schema

NameRequiredDescriptionDefault
currencyYesISO 4217 currency code, e.g. USD, EUR, GBP, JPY. TRY is allowed for conversions.
end_dateNoDefaults to today.
intervalNodaily
rate_typeNoWhich TCMB rate to use. forex_buying ('döviz alış') is the commonly quoted official rate.forex_buying
start_dateYesDate as YYYY-MM-DD (Istanbul calendar).

Output Schema

NameRequiredDescriptionDefault
statsYes
pointsYes
currencyYes
intervalYes
rate_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/idempotent, and the description adds genuinely non-obvious behavior: the returned statistics (first/last, min/max with dates, mean, % change) and the hard interval caps (93/731/3660 days) that determine whether a call will succeed. Missing: behavior on weekends/holidays and on dates outside TCMB's published range.

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 dense sentences: output shape first, then the constraint that governs parameter choice. No filler, nothing duplicated from the schema, and the most decision-relevant information is front-loaded.

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?

An output schema exists, so the description is not obliged to explain returns, yet it does so briefly and usefully. Combined with the range caps and rate-unit convention, an agent has enough to call this correctly; only edge-case behavior (holidays, out-of-range dates, TRY conversions) is left unstated.

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 80%, so the baseline is 3, and the description earns an extra point by documenting the per-interval range limits (daily 93, weekly 731, monthly 3660) that constrain the interval parameter but appear nowhere in the schema. It does not touch rate_type or end_date, which the schema already covers adequately.

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?

States a specific verb+resource ('Time series of one currency's TCMB rate') and clarifies the unit convention (TRY per 1 unit), which cleanly separates it from convert_currency and get_exchange_rates. It never names a sibling explicitly, but the 'history/time series' framing makes the distinction inferable.

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 by 'time series' and by the range limits, which tell the agent when a given interval is viable. There is no explicit statement of when to prefer this over get_exchange_rates or convert_currency, and no mention of prerequisites or error behavior when a range is exceeded.

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