Skip to main content
Glama

Agent Utils (x402)

FX conversion (ECB reference rates)

fx_convert

Convert an amount between ~30 major currencies (USD, EUR, JPY, GBP, CNY, KRW, ...) using the latest or a dated ECB reference rate (last ~90 days), with cross rates computed for any pair. Data: ECB euro reference rates - this data is available free of charge at ecb.europa.eu; this service adds cross-rate computation, JSON formatting and caching. Information purposes only, not for transactions. (Paid tool: $0.005 USDC per call via x402 on eip155:8453, eip155:137.)

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
toYesISO 4217 code, e.g. JPY
dateNoYYYY-MM-DD; uses the latest ECB rate on or before this date
fromYesISO 4217 code, e.g. USD
amountNoAmount in `from` currency (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?

With no annotations, the description carries the full burden and does substantial work: it names the data source, discloses the ~90-day data limit, states that cross rates are computed and results cached, and flags a paid x402 flow with specific chains and price. It does not say what happens for unsupported currencies or dates outside the window, which keeps it below a 5.

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?

The core capability and its limits are front-loaded in the first sentence, with provenance, disclaimer, and payment terms following. Some of the attribution/pricing wording is dense, but each part (caching, cross rates, 90-day limit, cost) carries information an agent needs before calling.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no output schema, the description never says what the response contains — presumably the converted amount, the rate applied, and the effective rate date. The input side, pricing, and data constraints are well covered, but the missing return shape is a genuine gap for an agent composing a workflow.

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 already 100%, so the baseline is 3, but the description adds real meaning the schema lacks: the ~90-day data horizon constrains the `date` parameter, and the currency enumeration clarifies valid `from`/`to` values. The `amount` default and date fallback behavior remain schema-only, so it is an increment rather than a full supplement.

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 specific verb and resource ('Convert an amount between ~30 major currencies') plus the rate basis (ECB reference rates, latest or dated) and cross-rate computation. The scope is narrow enough to distinguish it from fx_history and fx_currencies without opening any schema.

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 by 'convert an amount' and the '~90 days' window, which hints that older data belongs elsewhere, but no sibling is named and no explicit when-not guidance is given. The 'information purposes only, not for transactions' line is a disclaimer, not selection guidance.

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