Skip to main content
Glama

Convert currency

convert
Read-only

Convert an amount from one currency to another. Returns {amount, currency} rounded to the target's minor units. Upstream rounds rates per direction; for low-value sources, flip via get_rates for more precision.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesISO 4217 target currency.
dateNoDate YYYY-MM-DD for a past rate; omit for latest.
fromYesISO 4217 source currency.
amountYesAmount in the source currency. Normalize localized input first: '100,50' -> 100.5; German '1.000,50' -> 1000.5; English '1,000.50' -> 1000.5.

TDQS

A4.6/5.0
Behavior5/5

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

The description adds significant behavioral context beyond annotations: it specifies rounding to target minor units, explains upstream rounding behavior per direction, and recommends flipping via get_rates for precision. This matches readOnlyHint and openWorldHint.

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 description is two sentences, front-loading the primary action and then providing precision details. Every sentence adds value with no redundancy.

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 simple conversion tool with no output schema, the description covers return format (amount, currency, rounded) and provides precision guidance. It lacks error handling details but is sufficient given sibling tools and open world annotations.

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 100%, baseline 3. The description adds value by explaining rounding behavior (target minor units) and includes detailed normalization examples for the amount parameter, clarifying input handling beyond schema descriptions.

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?

The description clearly states 'Convert an amount from one currency to another,' providing a specific verb and resource. It distinguishes from siblings (get_rates, list_currencies) by focusing on conversion rather than rate retrieval or listing.

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?

The description explicitly advises using get_rates for low-value sources to obtain more precision, giving clear context on when to choose an alternative. However, it does not fully elaborate on all alternative scenarios.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool has a distinct, non-overlapping purpose: convert handles amount conversion with rounding, get_rates provides raw exchange rates, and list_currencies enumerates supported currencies. No ambiguity.

Naming Consistency5/5

All tool names follow a consistent verb or verb_noun pattern (convert, get_rates, list_currencies). The naming is predictable and uniform.

Tool Count5/5

Three tools are well-scoped for a currency exchange server: conversion, rate retrieval, and currency listing. The count is appropriate for the domain and avoids unnecessary complexity.

Completeness4/5

The tool set covers the core workflows: converting amounts, fetching rates, and listing currencies. Minor gaps exist, such as lack of historical rate time series, but the set is generally complete for typical usage.