Skip to main content
Glama

get_historical_rate

Read-only

Retrieve the exchange rate between two currencies for a specific historical date, using ECB/Frankfurter data from 1999 onward.

Instructions

Belirtilen bir tarihteki döviz kurunu döndürür. Geçmiş ECB/Frankfurter verilerine (1999'dan itibaren) erişim sağlar.

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": {
      "from": "<from>",
      "to": "<to>",
      "date": "<date>"
    },
    "name": "get_historical_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesHedef para birimi kodu, ör. TRY, USD, EUR
dateYesKur bilgisi istenilen tarih (YYYY-MM-DD). 1999-01-04'ten itibaren desteklenir.
fromYesKaynak para birimi kodu, ör. USD, EUR, GBP

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds genuinely useful context beyond them: the ECB/Frankfurter provenance and the 1999-01-04 data floor. It omits important behavior for a historical lookup, notably what is returned on weekends/holidays when ECB publishes no rate, and whether the result is a single rate or a pair inversion.

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 short sentences, front-loaded with the core action and followed by scope/provenance. No filler or restatement of the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple 3-parameter read tool this covers purpose, source and date range. With no output schema, though, it leaves the return shape (rate value, currency pair direction, behavior for non-publishing days) undocumented, which an agent would want before calling.

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 each of from/to/date documented including the YYYY-MM-DD pattern and the 3-letter code constraint. The description adds nothing beyond that, so the baseline 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 uses a specific verb and resource ('Belirtilen bir tarihteki döviz kurunu döndürür' – returns the exchange rate on a given date) and adds the data source (ECB/Frankfurter) and temporal scope (1999+). That makes it distinguishable from a current-rate sibling such as get_exchange_rate, though the sibling is never 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 Guidelines3/5

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

The word 'historical' plus the date parameter implies this is for past dates rather than live quotes, and the 1999 start date implies a lower bound on validity. However, there is no explicit when-to-use / when-not guidance and no named alternative (get_exchange_rate, get_tcmb_rate) to route the agent.

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