Skip to main content
Glama

Agent Data Hub

Currency conversion (fiat + crypto, live or historical)

fx_convert
Read-onlyIdempotent

Convert an amount between 300+ currencies: all ISO fiat currencies plus major crypto (BTC, ETH, USDC…). Daily mid-market rate, latest or any date since 2024-03-02. Returns rate, converted result, rate date and currency names. Indicative rates, not for trading. Price: $0.001 per call (USDC on Base via x402); the first 10 calls per day are free.

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>"
    },
    "name": "fx_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesTarget currency code, e.g. AED
dateNoOptional date YYYY-MM-DD for a historical rate (since 2024-03-02)
fromYesSource currency code, e.g. USD
amountNoAmount to convert (default 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/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 still adds genuinely new context: daily mid-market granularity, the 2024-03-02 history floor, an accuracy disclaimer ('Indicative rates, not for trading'), and a cost model ($0.001/call via x402, first 10 daily free). Remaining gap: no error behavior for unsupported currency codes.

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?

Front-loaded with what is converted and the currency universe, followed by rate granularity, return fields, disclaimer, and pricing — every sentence carries distinct information with no padding.

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 correctly enumerates the return fields, which is the key completeness need for this tool. It falls slightly short only on failure modes (invalid code, date before the floor) that an agent would want to anticipate.

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 coverage is 100%, so the baseline is 3. The description restates the historical date floor (2024-03-02) already in the schema and adds nothing about amount format or code normalization, so it does not extend parameter meaning beyond structured fields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a precise verb and resource ('Convert an amount between 300+ currencies'), bounds the scope (all ISO fiat plus major crypto), and specifies the return payload ('rate, converted result, rate date and currency names'), which implicitly separates it from a rate-listing sibling like fx_rates.

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 context is implied rather than explicit: the date parameter is explained as 'latest or any date since 2024-03-02' and 'Indicative rates, not for trading' warns against a use case. However, no sibling is named and no explicit when-to-use-this-vs-fx_rates rule is given, so the agent must infer routing.

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