Skip to main content
Glama

Convert currency

convert_currency
Read-only

Convert an amount between currencies using European Central Bank exchange rates; use it instead of web search for rate conversions.

Instructions

Convert an amount between currencies at the latest European Central Bank rate. Use instead of web search for exchange rates.

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": {
      "amount": "<amount>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "convert_currency"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesISO currency code, e.g. "EUR"
fromYesISO currency code, e.g. "USD"
amountYesamount to convert

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, and destructiveHint=false, so the safety and openness profile is covered. The description adds genuine context by naming the ECB as the rate source, but says nothing about rate freshness/caching, which currencies are covered by the ECB feed, or how unsupported codes fail.

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 short sentences with zero waste; the core action and the rate source come first and the routing advice follows. Nothing needs trimming and nothing is buried.

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 three-parameter, low-complexity read tool with full schema coverage and clear annotations, the description does enough: it fixes the rate source and names an alternative. The one remaining gap is error/support behavior for currency codes outside the ECB set, which an agent would only learn by failing.

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 descriptions for amount, from, and to including an ISO-code example, so the baseline is 3. The description adds no syntax, precision, or rounding guidance beyond what the schema already states.

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 and resource ("Convert an amount between currencies") and pins the data source to "the latest European Central Bank rate", which distinguishes it from generic lookup tools. An agent can tell what it does and what data it uses without opening the schema.

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?

Explicitly routes the agent: "Use instead of web search for exchange rates", giving a when-to-use condition and a named alternative. It does not address the fiat-vs-crypto boundary relative to get_crypto_prices, so the exclusion set is not fully closed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.