Skip to main content
Glama

ScorpTech x402 Tools

Fx Rate

fx_rate
Read-onlyIdempotent

Fiat currency exchange rate (ECB reference rates via Frankfurter, with ExchangeRate-API fallback for 150+ currencies), optional amount conversion and historical date. Read-only. Returns JSON with: from, to, rate, inverse, amount, converted, date, source. Price: $0.005 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/fx-rate

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_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesISO-4217 quote currency, e.g. EUR
dateNoHistorical date YYYY-MM-DD (ECB currencies only, 1999-01-04 onward)
fromYesISO-4217 base currency, e.g. USD
amountNoAmount of `from` to convert; default 1

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, but the description adds material context those fields cannot convey: the primary and fallback data sources, the exact return shape (from, to, rate, inverse, amount, converted, date, source), and a paid-call model at $0.005 USDC per successful call via x402 on Base or Solana. The payment requirement and 'per successful call' billing semantics are critical behavioral facts an agent must know before invoking.

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 first sentence front-loads purpose, source, and scope; the rest is compact single-clause additions (read-only, return fields, price, HTTPS endpoint). The pricing and endpoint clauses are dense but each carries distinct operational information. Minor deduction for packing payment and transport details into the same block without separation.

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?

With no output schema, the description correctly enumerates the returned JSON fields, and it discloses the payment model, so an agent can call and interpret results without further lookup. What is missing is failure behavior – e.g. how unsupported currency pairs, dates outside the ECB range, or a provider fallback failure are surfaced. For a simple read-only lookup that is a small gap.

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 four parameters are already documented with ISO-4217 formats, the YYYY-MM-DD date format, the 1999-01-04 lower bound, and the amount default of 1. The description only restates that amount conversion and historical date are optional, adding no format or edge-case detail beyond the schema. Baseline 3 is appropriate.

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+resource: fiat currency exchange rate lookup with optional amount conversion and historical date. It also names the underlying data providers (ECB via Frankfurter, ExchangeRate-API fallback) and coverage (150+ currencies), so an agent knows exactly what domain this covers. Nothing ambiguous remains about what the tool returns.

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 only implied by the phrase 'optional amount conversion and historical date' – there is no explicit when-to-use, when-not-to-use, or routing to an alternative tool. The 'Same tool over HTTPS' note is a transport alternative, not a tool-selection guideline. The date constraint (ECB currencies only) is the closest thing to a usage condition, but it is scoped to a parameter rather than to the tool.

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