Skip to main content
Glama

fx_convert

Read-only

$0.002 via x402: Currency conversion: convert an amount between two currencies at the latest European Central Bank (ECB) reference rate: {from, to, amount, rate, result, date, source}. Reference rates, not trading quotes. Pay 0.002 USDC through https://store.agentexchange.work/gw/fx/convert?from=USD&to=CNY&amount=100. Via the Agent Exchange store gateway; settled by Coinbase.

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
toYesto
fromYesfrom
amountNodefault 1
x_paymentNoSigned x402 payment payload (optional; without it the answer is the price)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations cover only readOnlyHint and openWorldHint; the description adds the material behavioral facts the annotations omit: a 0.002 USDC x402 charge, the payment gateway URL, and Coinbase settlement. It also lists the return fields ({from, to, amount, rate, result, date, source}), which matters because there is no output schema. It does not spell out failure or retry behavior when payment is rejected.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose is front-loaded and the price is stated first, but the cost is repeated ('$0.002 via x402' and 'Pay 0.002 USDC'), and the sentence is a run-on mixing purpose, output fields, pricing, URL, and settlement. Trimming the duplicate price and consolidating the gateway details would improve it.

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 paid conversion tool with no output schema, the description supplies the return-field set, the rate source, the payment requirement, and the endpoint. The main gap is the lack of guidance on what happens without a valid payment payload and how to choose between this and the rate/history siblings.

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 the schema already documents all four parameters, including the amount default and the optional x_payment payload. The description reinforces from/to/amount through the example URL but adds no format or semantic detail beyond what the schema supplies. Baseline 3 is appropriate.

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 states a specific verb and resource ('convert an amount between two currencies') and pins the rate source to the ECB reference rate. It further distinguishes the output from trading quotes ('Reference rates, not trading quotes'), which separates it from a live-quote tool. It does not explicitly name a sibling such as fx_rates or fx_history, so sibling routing is only implied.

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 is implied by the price/payment framing and the ECB reference-rate scope, but there is no explicit 'use this when...' or 'use fx_rates instead when...' statement. The agent must infer from the 'reference rates, not trading quotes' line that historical or live-rate tools are alternatives.

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.