Skip to main content
Glama

Agent Data Tools: Prices and DeFi

All FX pairs, forex cross rates

fx_all
Read-only

All FX pairs in one call: cross rates for every pair among the major currencies (USD, EUR, GBP, JPY, CHF, CAD, AUD, CNY) or up to 12 chosen ones, from the European Central Bank's daily reference rates, with the date they apply to. Use to fill a forex rate table, convert between many currencies at once, or check a cross rate. Reference mid rates, not live bid/ask. Example: currencies=USD,EUR,GBP. 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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "fx_all"
  }
}

Input Schema

NameRequiredDescriptionDefault
currenciesNoOptional comma-separated currency codes (2-12); default the eight majors

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly, non-destructive, non-idempotent, open-world) by disclosing data provenance and staleness (ECB daily reference rates, with effective date), rate type ('reference mid rates, not live bid/ask'), and the full cost model ($0.002/call, first 10 free, failed calls free, repeats billed). The 'each call is charged, so repeats are not free' line is consistent with idempotentHint=false rather than contradicting it.

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 purpose, then use cases, rate-type caveat, example, pricing, and safety in a compact block; nearly every sentence carries information. The cost/payment details are slightly longer than strictly needed for tool selection but are not 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?

For a one-optional-parameter, no-output-schema tool whose annotations already cover safety, the description supplies source, freshness, return content ('with the date they apply to'), and cost. The only gap is the exact shape of the returned pair matrix (number of pairs, rate formatting), which an agent must infer.

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 100% and the single optional parameter is already documented, so the baseline is 3; the description adds real value by enumerating what the 'eight majors' actually are (USD, EUR, GBP, JPY, CHF, CAD, AUD, CNY), restating the 12-currency cap, and giving a concrete example (currencies=USD,EUR,GBP).

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 concrete verb+resource+scope: 'All FX pairs in one call: cross rates for every pair among the major currencies', names the data source (ECB daily reference rates) and the optional override (up to 12 chosen). The 'all pairs in one call' framing implicitly but clearly separates it from a single-rate 'fx' tool.

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?

Gives three concrete use cases: filling a forex rate table, converting many currencies at once, checking a cross rate. It does not explicitly say when to prefer the sibling single-pair or symbol-listing tools, so the routing guidance is clear but not exhaustive.

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