Skip to main content
Glama

Agent Data Tools: Prices and DeFi

Forex, currency exchange rates FX: converter and conversion

fx
Read-only

Foreign exchange rates from the European Central Bank for about 30 major currencies (USD, EUR, GBP, JPY, CHF, SEK, CAD, AUD, CNY, INR, BRL and more). Give a base currency, optionally the target currencies and an amount, and get the rates, the converted amounts and the date the rates apply to. Use for currency conversion, invoice and price calculations, and reporting in another currency. Example: from=USD. Price $0.002/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not 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>"
    },
    "name": "fx"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoOptional comma-separated target currency codes, e.g. EUR,GBP; default is all available currencies
fromYesBase currency as a three-letter ISO 4217 code, e.g. USD (an HTTP call with no input at all answers for USD)
amountNoOptional amount of the base currency to convert (default 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / from / description
      Previous value: -"Base currency as a three-letter ISO 4217 code, e.g. USD"New value: +"Base currency as a three-letter ISO 4217 code, e.g. USD (an HTTP call with no input at all answers for USD)"
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=false, and openWorldHint=true, and the description reinforces the safe profile with 'Reads or computes only and changes nothing.' It goes well beyond the annotations by disclosing the commercial model: $0.002 per call via x402 USDC or a card key, first 10 free, failed calls free, and an explicit warning that repeat calls are not free – which directly corroborates idempotentHint=false. That pricing detail is operationally important and unavailable anywhere else in the structured fields.

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?

It is front-loaded with the resource and data source, then parameters and outputs, then use cases, then the example, and finally the cost/read-only caveats – a logical order with no filler. Sentences are dense but each one adds information an agent would act on, and the currency list is illustrative rather than noisy.

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 correctly explains the return payload (rates, converted amounts, applicable date), and it also covers cost, free-tier behavior, and side-effect freedom. For a three-parameter read-only lookup this leaves nothing an agent needs before calling it correctly.

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 all three parameters are already documented, including defaults for `to` (all currencies) and `amount` (1). The description restates the base/target/amount pattern and adds the useful framing of what is returned alongside the rates, but contributes no syntax, format, or edge-case detail beyond the schema. Baseline 3 is appropriate when the schema carries the parameter burden.

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 concrete resource and behavior: ECB foreign exchange rates for ~30 major currencies, taking a base currency plus optional targets and amount, returning rates, converted amounts, and the rate date. It lists example currencies and a call example (from=USD), so an agent knows exactly what it gets. It stops short of naming sibling tools like fx_all or fx_symbols, so the boundary with those is only implied by the phrase 'about 30 major currencies' and the base-currency input.

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 gives explicit positive guidance – 'Use for currency conversion, invoice and price calculations, and reporting in another currency' – and a concrete example invocation, which is enough for an agent to recognize the right context. It never states when not to use it, nor names an alternative for cases such as listing supported symbols or fetching the full rate table, so the routing decision against siblings is left to inference.

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