Skip to main content
Glama

Duo Data Utilities: IBAN, VAT, ISIN Validation API

Currency lookup: ISO 4217 codes, names, minor units and cash rounding

currency_lookup
Read-onlyIdempotent

Currency lookup by ISO 4217 alphabetic or numeric code: the official English name, minor-unit exponent, fund flag, the smallest cash denomination where it differs from the minor unit, the territories that use it, and historic codes on request. Returns the correct rounding increment for cash amounts, which is what a caller needs to render or settle a price. This route returns currency facts only and never an exchange rate. Price: $0.05 per successful call, paid over x402 (USDC on Base).

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": "currency_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoISO 4217 alpha-3 or 3-digit numeric code. Accepted: a 3-letter alphabetic or 3-digit numeric ISO 4217 code.
countryNoISO 3166-1 alpha-2; returns the currencies in use there. Accepted: an ISO 3166-1 alpha-2 code.
includeNoComma-separated: territories, historic. Default none. Accepted: comma-separated subset of territories, historic.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and closed-world, so safety is covered. The description adds genuinely non-structural behavior: a $0.05 per-successful-call charge settled over x402 on Base, which an agent must know before invoking. It does not cover rate limits, caching, or failure/refund behavior, keeping it below a 5.

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?

Three front-loaded sentences, each carrying distinct information: inputs and returns, the rounding purpose, and the two boundaries (no exchange rate, paid call). The clause 'which is what a caller needs to render or settle a price' is slightly redundant with the preceding sentence but earns its place by justifying the cash-denomination field.

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 description correctly substitutes by listing the returned fields, and it discloses the payment model, which is the main non-obvious risk for a caller. Since there are no required parameters, the definition is nearly self-sufficient; only the behavior when code and country are both supplied is left unstated.

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 the baseline is 3. The description does tie the include options to concrete outputs ('the territories that use it, and historic codes on request'), which adds a little meaning beyond the enum-like accepted values, but it adds no format or interaction guidance for the optional code/country pair.

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 (currency lookup by ISO 4217 alphabetic or numeric code) and enumerates exactly what is returned: official English name, minor-unit exponent, fund flag, cash denomination, territories, historic codes. It also draws a sharp boundary no sibling name could imply: 'This route returns currency facts only and never an exchange rate.'

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?

It gives the operative use case, computing the correct rounding increment for rendering or settling a price, and explicitly excludes FX conversion, which heads off the most likely misuse. It stops short of naming an alternative tool or stating when an agent should reach for a sibling instead, so it lacks full when-not/alternatives coverage.

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.