Skip to main content
Glama
Bank Exchange Rates MCP Server

Bank Exchange Rates MCP Server

Get a bank's buy and sell rates

get_bank_rates
Read-only

Retrieve live buy and sell exchange rates from a selected commercial bank for one currency or its full board, including optional historical dates and official-rate comparison.

Instructions

Live buy and sell exchange rates that one commercial bank shows on its own website, e.g. 'SBI TT buying rate for USD', 'DBS SGD rates', 'Emirates NBD INR rate today'. Give ccy for one currency (buy, sell, spread_pct and the central bank's official rate), or omit it for the bank's whole board. date returns the stored board for a past day (about 400 days kept). Prices are home currency per 1 unit of foreign currency. Retail prices, not official rates. Needs an API key (the free key works).

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": {
      "country": "<country>",
      "bank": "<bank>"
    },
    "name": "get_bank_rates"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccyNoForeign currency, ISO 4217, e.g. 'USD', 'EUR', 'GBP'. Prices are in the country's home currency per 1 unit.
bankYesBank code inside the country, e.g. 'sbi', 'hdfc', 'dbs', 'enbd', 'bofa'. Use find_banks if unsure.
dateNoDate as YYYY-MM-DD.
countryYesTwo-letter country code (ISO 3166), e.g. 'in', 'sg', 'ae', 'gb', 'us'. See list_bank_countries.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations it discloses provenance (bank's own website), freshness (live), a retention window (~400 days), a semantic caveat (retail prices, not official rates; home currency per 1 foreign unit), and the auth requirement with a note that the free key suffices. That is exactly the behavioral context annotations cannot carry.

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?

Purpose is front-loaded in the first clause, and every subsequent sentence carries operational information. The three inline examples of query phrasing are slightly redundant, but they do help map natural-language intent to the `ccy`/`bank` parameters.

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

Completeness5/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 compensates by naming the returned fields and price convention, and it covers auth, retention, and data-source caveats. Nothing an agent needs in order to call this correctly against a 4-parameter, 2-required tool appears to be missing.

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 the baseline is 3, but the description adds genuine meaning: it spells out what `ccy` returns (buy, sell, spread_pct, central bank official rate), what `date` retrieves (a stored board), and the price quotation convention. It stops short of clarifying interactions such as whether `date` plus `ccy` together are honored.

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 resource and scope: live buy/sell rates from 'one commercial bank' as shown on its own website, with concrete examples of the query shape. It implicitly separates itself from country-wide or comparison siblings by emphasizing a single bank, but it never explicitly names those alternatives, so the distinction is left partly to inference.

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?

It states the two usage modes clearly: pass `ccy` for a single currency (with the fields returned), or omit it for the bank's whole board, and use `date` for a past day. It does not say when to prefer the country-level, comparison, or history siblings, so routing guidance is incomplete rather than absent.

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