Skip to main content
Glama

Convert an amount between currencies

convert_currency
Read-onlyIdempotent

Convert money between ISO 4217 currencies with daily exchange rates. ECB reference rates (via Frankfurter) are used for USD, EUR, GBP, JPY, CHF, CAD, AUD, CNY, INR, CZK, HUF, ILS, ISK, RON, BRL, MXN, SGD, HKD, NZD, SEK, NOK, DKK, ZAR, TRY, KRW, THB, MYR, IDR, PHP, PLN; other codes such as PKR, AED, SAR or NGN use the free fawazahmed0 currency API. The result says which source answered. Supports historical dates (YYYY-MM-DD).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "convert_currency"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoISO 4217 currency code.EUR
dateNoHistorical date; omit for the latest rates.
fromNoISO 4217 currency code.USD
amountNo

Output Schema

NameRequiredDescriptionDefault
okYes
toNo
dateNo
fromNo
rateNo
errorNo
amountNo
resultNo
sourceNoecb: European Central Bank via Frankfurter. fawazahmed0: wider daily rates for other codes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedOutput schema / properties / source
      Added value: +{
      +  "description": "ecb: European Central Bank via Frankfurter. fawazahmed0: wider daily rates for other codes.",
      +  "enum": [
      +    "ecb",
      +    "fawazahmed0"
      +  ],
      +  "type": "string"
      +}
  2. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, and idempotentHint, so safety is covered. The description adds useful behavioral context beyond annotations: it identifies the data source (ECB reference rates via Frankfurter) for a list of currencies, a fallback API for others, and states that 'the result says which source answered.' It also discloses that rates are daily, which is important for expectations.

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 description is front-loaded with the core purpose and then supplies necessary details in a compact form. The long currency list is dense but justified for parameter semantics; there is little wasted wording, though it could be slightly more scannable with formatting.

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?

Given the moderate complexity (4 optional parameters, no nested objects, an output schema exists) and annotations covering safety, the description is fairly complete. It covers data sources, fallback behavior, historical dates, and result provenance. Minor gaps like not explaining the result schema are acceptable because an output schema is provided.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 75%, so the schema already describes the 'to', 'from', and 'date' parameters. The description adds meaning by listing the specific ISO 4217 codes supported by the primary API and noting that other codes (e.g., PKR, AED, SAR, NGN) use a different API, which helps the agent choose valid inputs. It does not add detail for the 'amount' parameter, but overall it provides value beyond the schema.

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 money between ISO 4217 currencies with daily exchange rates.' This clearly distinguishes it from generic unit conversion siblings, but it does not explicitly name an alternative tool or clarify when to prefer a sibling like convert_units.

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 purpose statement and the mention of supported currencies and historical dates, but there is no explicit guidance on when to use this tool versus alternatives, nor any exclusions or prerequisites. The agent must infer the context.

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.