Skip to main content
Glama

Exchange Rate

exchange_rate
Read-onlyIdempotent

Twelve Data live forex exchange rate for a currency pair symbol (e.g. 'EUR/USD'). Optional dp (decimal places) and timezone. Returns rate, timestamp, and pair identifiers.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "symbol": "EUR/USD"
    },
    "name": "exchange_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
dpNoDecimal places for the rate (0-11).
formatNoResponse format: "JSON" (default) or "CSV".
symbolYesTicker/symbol. Stocks e.g. "AAPL", "MSFT"; forex "EUR/USD"; crypto "BTC/USD"; ETFs "SPY". Comma-separate for a batch (e.g. "AAPL,MSFT"). Market indices (SPX, N225, ...) need a Grow-or-higher Twelve Data key passed via _apiKey, the shared key cannot quote them.
timezoneNoOptional timezone, e.g. "America/New_York" or "UTC".

Output Schema

NameRequiredDescriptionDefault
rateNo
symbolNo
timestampNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / dp / description
      Previous value: -"Decimal places for the rate (0–11)."New value: +"Decimal places for the rate (0-11)."
    • changedInput schema / properties / symbol / description
      Previous value: -"Ticker/symbol. Stocks e.g. \"AAPL\", \"MSFT\"; forex \"EUR/USD\"; crypto \"BTC/USD\"; ETFs \"SPY\". Comma-separate for a batch (e.g. \"AAPL,MSFT\"). Market indices (SPX, N225, …) need a Grow-or-higher Twelve Data key passed via _apiKey — the shared key cannot quote them."New value: +"Ticker/symbol. Stocks e.g. \"AAPL\", \"MSFT\"; forex \"EUR/USD\"; crypto \"BTC/USD\"; ETFs \"SPY\". Comma-separate for a batch (e.g. \"AAPL,MSFT\"). Market indices (SPX, N225, ...) need a Grow-or-higher Twelve Data key passed via _apiKey, the shared key cannot quote them."
  2. Changed7 schema fields changed
    • changedInput schema / properties / symbol / description
      Previous value: -"Ticker/symbol. Stocks e.g. \"AAPL\", \"MSFT\"; forex \"EUR/USD\"; crypto \"BTC/USD\"; ETFs \"SPY\"; indices \"IXIC\". Comma-separate for a batch (e.g. \"AAPL,MSFT\")."New value: +"Ticker/symbol. Stocks e.g. \"AAPL\", \"MSFT\"; forex \"EUR/USD\"; crypto \"BTC/USD\"; ETFs \"SPY\". Comma-separate for a batch (e.g. \"AAPL,MSFT\"). Market indices (SPX, N225, …) need a Grow-or-higher Twelve Data key passed via _apiKey — the shared key cannot quote them."
    • removedOutput schema / properties / code
      Removed value: -{
      -  "description": "Response code",
      -  "type": "number"
      -}
    • removedOutput schema / properties / message
      Removed value: -{
      -  "description": "Response message",
      -  "type": "string"
      -}
    • addedOutput schema / properties / rate
      Added value: +{
      +  "type": "number"
      +}
    • removedOutput schema / properties / status
      Removed value: -{
      -  "description": "Response status",
      -  "type": "string"
      -}
    • addedOutput schema / properties / symbol
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / timestamp
      Added value: +{
      +  "type": "number"
      +}
  3. Changed4 schema fields changed
    • addedInput schema / properties / dp / description
      Added value: +"Decimal places for the rate (0–11)."
    • addedInput schema / properties / format / description
      Added value: +"Response format: \"JSON\" (default) or \"CSV\"."
    • addedInput schema / properties / symbol / description
      Added value: +"Ticker/symbol. Stocks e.g. \"AAPL\", \"MSFT\"; forex \"EUR/USD\"; crypto \"BTC/USD\"; ETFs \"SPY\"; indices \"IXIC\". Comma-separate for a batch (e.g. \"AAPL,MSFT\")."
    • addedInput schema / properties / timezone / description
      Added value: +"Optional timezone, e.g. \"America/New_York\" or \"UTC\"."
  4. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "symbol": "EUR/USD"
      +  },
      +  {
      +    "dp": 4,
      +    "symbol": "GBP/USD"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "code": {
      +      "description": "Response code",
      +      "type": "number"
      +    },
      +    "message": {
      +      "description": "Response message",
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "Response status",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  5. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds value by naming the returned fields (rate, timestamp, pair identifiers), but it says nothing about the API-key requirement for restricted symbols, batch behavior, or failure modes beyond what the schema already states.

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 compact sentences, front-loaded with the core purpose followed by options and return shape. No padding, though the final sentence's return-value summary is largely redundant given an output schema exists.

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 simple read-only quote tool with full schema coverage, annotations, and an output schema, the description supplies enough to call it correctly. The main omission is the multi-asset scope implied by the symbol parameter, which the description's forex-only framing obscures.

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%, so both dp and timezone are already documented in structured form; the description only restates them as 'optional'. It does illustrate symbol usage with 'EUR/USD', but adds no syntax or formatting detail beyond the schema, 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?

States a specific verb+resource: fetches a live exchange rate for a currency pair symbol, with an example ('EUR/USD') and a note on what is returned. It is slightly narrower than reality, since the symbol schema also accepts stocks, crypto, and ETFs, so an agent reading only the description may not realize it can quote non-forex symbols.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no exclusions, and no routing to the obvious alternatives such as currency_conversion or forex_pairs. The agent is left to infer that this is a single-quote lookup rather than a conversion or pair-listing operation.

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.