Skip to main content
Glama

SiftingIO market data (x402)

Convert between forex and crypto at live rates

convert_amount
Read-only

Convert an amount between forex or crypto currencies at the live mid-market rate, e.g. 100 USD to EUR, EUR to JPY or GBP to USD. Costs $0.002 USDC per call, paid with x402 on Base; failed calls are not charged.

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": "convert_amount"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesTarget currency or token (e.g. `GBP`, `ETH`). Case-insensitive.
fromYesSource currency or token (e.g. `USD`, `BTC`). Case-insensitive.
amountNoAmount to convert. Defaults to 1 (returns just the rate).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Beyond readOnlyHint and openWorldHint, the description discloses the pricing model ($0.002 USDC per call via x402 on Base) and the failure-billing policy ('failed calls are not charged'), which is exactly the kind of operational context an agent needs before calling a paid endpoint. It stops short of covering rate freshness/latency or output precision.

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?

Two sentences, both front-loaded: the capability with examples first, then the cost/payment terms. Every clause carries information an agent would act on, with no filler.

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 simple 3-parameter, no-output-schema tool with full schema coverage and annotations, the definition covers purpose, examples, and cost. The main residual gap is the shape of the result (whether it returns a rate only, a converted amount, or both) which the description leaves unstated.

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 all three parameters are already documented with types, defaults, and examples. The description adds only illustrative pairs (USD/EUR, EUR/JPY, GBP/USD) and no new semantics such as supported currency universe or case handling beyond what the schema states.

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 uses a specific verb and resource ('Convert an amount between forex or crypto currencies') and immediately grounds it with concrete pair examples (100 USD to EUR, EUR to JPY). It is clearly distinct from the get_* market-data siblings, though it never explicitly says so.

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 examples and the rate context, so an agent can infer this is the tool for computing a cross-currency value rather than fetching two quotes. There is no explicit when-to-use/when-not statement or mention of alternatives such as get_last_quote for raw pricing.

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