Skip to main content
Glama

Get exchange rates

get_exchange_rates
Read-onlyIdempotent

Daily reference exchange rates of the New Taiwan dollar and other currencies, for one date or a date range. Data comes from the CubeLV Market Data API (https://cubelv.com/en/mcp/taiwan-economy/): pick a method and pass its arguments in args.

Methods:

  • fxCurrencies (Reference FX currencies): Currency codes (with their Chinese names) available for the daily reference exchange rates in fxRate and fxHistory.

  • fxRate (Daily reference exchange rate): Daily reference rate: how many units of quote one unit of base buys on a given date. Pairs published directly by TAIFEX use the published value; other pairs are cross rates through USD. Args: base (required): Base currency code (case-insensitive), as listed by fxCurrencies; quote (required): Quote currency code (case-insensitive); the rate is quote units per 1 base; date: Date, YYYYMMDD (Taipei); default today. Uses the latest published rate within 7 days on or before it; the response date is the rate date actually used.

  • fxHistory (Reference exchange rate history): Daily reference rates (quote units per 1 base) over a date range, oldest first. Args: base (required): Base currency code (case-insensitive), as listed by fxCurrencies; quote (required): Quote currency code (case-insensitive); from: Start date (inclusive), YYYYMMDD; default one year before to; to: End date (inclusive), YYYYMMDD; default today (Taipei); limit: Return only the most recent N rate dates in the range; omit for all.

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": {
      "method": "<method>"
    },
    "name": "get_exchange_rates"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNoArguments of the method, as listed in the tool description
langNoLanguage for data labels (industries, statement items, categories) and links: en, ja, ko or vi; default en
methodYesMethod from the list in the tool description

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/openWorld annotations, the description discloses substantive behavior: TAIFEX-published pairs use the published value while other pairs are cross rates through USD, fxRate falls back to the latest published rate within 7 days and reports the date actually used, and fxHistory returns oldest-first. It also pins the timezone (Taipei) for date defaults, which prevents off-by-one date errors.

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?

Front-loaded with one framing sentence, then a bulleted per-method breakdown with args inline, which is easy to scan and mirrors the method enum. Every clause carries operational meaning; the only near-filler is the promotional CubeLV URL, which does at least attribute the data source.

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 no output schema, the description does the necessary work of describing what comes back (rates, the rate date actually used, oldest-first ordering) and what fxCurrencies returns (codes with Chinese names). It stops short of describing the response envelope's field names or how invalid currency codes or empty date ranges are reported.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is nominally 100%, but the nested args object is only described as 'as listed in the tool description' — so the description is the actual contract and it delivers: base/quote case-insensitivity, the exact interpretation 'quote units per 1 base', YYYYMMDD format, per-method defaults for date/from/to, and the non-obvious meaning of limit ('most recent N rate dates in the range; omit for all').

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: daily reference exchange rates of the New Taiwan dollar and other currencies, for one date or a date range, with the source API identified. It then decomposes the tool into three named methods (fxCurrencies, fxRate, fxHistory) so the agent knows exactly which capability it is invoking. It never names a sibling tool, so differentiation from get_global_benchmarks or get_macro_series rests on the resource description alone.

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?

Usage is spelled out per method: fxCurrencies to discover valid currency codes, fxRate for a single date, fxHistory for a range. It also states the prerequisite that base/quote must be 'as listed by fxCurrencies', which is real routing guidance. It gives no guidance on when to prefer another MCP tool instead (e.g. macro series for non-FX economics), so no explicit exclusions exist.

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