Skip to main content
Glama

Convert currency

convert_currency
Read-onlyIdempotent

Convert an amount at the ECB euro reference rates (about 30 currencies, published each working day), with the rate date and method. Information only: banks and card issuers apply their own rates and fees; not financial advice. Example: {"from":"USD","to":"ILS","amount":100}.

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

Input Schema

NameRequiredDescriptionDefault
toYesISO 4217 code to convert to, for example ILS.
fromYesISO 4217 code to convert from, for example USD.
amountNoAmount to convert. Default 1.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the bar is lower. The description adds real value beyond them: the rate source, the working-day publication cadence (implying rates can be stale on weekends/holidays), the fact that the rate date and method come back with the result, and the caveat that banks and card issuers apply their own rates.

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?

The core behavior and its data source lead the description, followed by the disclaimer and a compact example. Every element earns its place and nothing is padded.

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 phrase 'with the rate date and method' usefully signals what the response contains, and the source/cadence caveats cover accuracy expectations. Only minor gaps remain, such as behavior on an invalid or unsupported currency code.

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 ISO 4217 codes and the amount default of 1 are already documented. The example {"from":"USD","to":"ILS","amount":100} illustrates a realistic call but adds no semantics the schema does not already carry, so the baseline of 3 applies.

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') and pins the data source precisely: 'ECB euro reference rates (about 30 currencies, published each working day)'. The scope details (currency count, publication cadence) let an agent know exactly what class of conversion this handles without needing a sibling comparison.

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 tool's purpose rather than stated. The 'Information only' sentence sets accuracy expectations and disclaims financial advice, which is useful context, but it says nothing about when to prefer this over another approach or what to do for unsupported currencies or non-working-day rate dates.

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