Skip to main content
Glama

calmlet-mcp

fx_convert

Convert an amount between two currencies at the reference rate. Costs $0.002 USDC per call, paid via x402 on Base.

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
toYesTarget currency, ISO 4217 code, e.g. IDR
fromYesSource currency, ISO 4217 code, e.g. USD
amountNoAmount to convert; must be > 0 and <= 1e12 (default 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose a genuinely important trait: a per-call price of $0.002 USDC via x402 on Base, which tells an agent that payment handling is required, and 'reference rate' signals the rate source. It says nothing about error behavior, rounding/precision, or what a successful call returns.

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, zero waste, with the core action front-loaded and the cost caveat second. Every sentence earns its place.

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 three-parameter tool with no output schema and no annotations, the description covers the action and the pricing model but leaves the return shape (converted amount, effective rate, timestamp) and precision/rounding unspecified. An agent knows how to call it but not what to expect back.

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%, with each of from, to, and amount documented including ISO 4217 examples and the >0 / <=1e12 bounds. The description adds no parameter-level meaning beyond 'between two currencies', so the schema does all the work and the baseline 3 applies.

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?

States a specific verb and resource ('Convert an amount between two currencies') plus the rate basis ('at the reference rate'), which separates it in spirit from a raw rate-fetch tool like fx_rates. It does not name any sibling explicitly, so the differentiation is implied rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance and no mention of alternatives such as fx_rates or fx_history. The agent must infer that this tool is for computing a converted amount rather than retrieving rate tables.

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.