Skip to main content
Glama

Datos de moneda (ISO 4217)

currency-info
Read-onlyIdempotent

Devuelve los datos de una moneda ISO 4217 (decimales, símbolo y nombre en inglés y español). Sin tasas de cambio. Cuándo: un cálculo de dinero, impuestos o matemática financiera tiene que ser exacto y reproducible (redondeo, centavos, tasas). No para: formatear un monto en cualquier moneda ISO 4217 según el idioma/país (currency-format). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Returns facts about an ISO 4217 currency from the runtime's CLDR data: display decimals (CLDR may differ from ISO, e.g. COP shows 0), symbol and narrow symbol in a locale, and localized names in English and Spanish. No exchange rates. When: a money, tax or financial-math result has to be exact and reproducible (rounding, cents, rates). [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
localeNoBCP 47 locale (string; optional; default "en-US"; up to 35 chars; pattern ^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$).en-US
currencyYesISO 4217 code (string; required; pattern ^[A-Za-z]{3}$).

Output Schema

NameRequiredDescriptionDefault
codeNo
knownNo
symbolNo
name_enNo
name_esNo
minor_unitsNo
narrow_symbolNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / currency / examples
      Added value: +[
      +  "cop"
      +]
  2. Changed1 schema field changed
    • addedInput schema / description
      Added value: +"EN: Returns facts about an ISO 4217 currency from the runtime's CLDR data: display decimals (CLDR may differ from ISO, e.g. COP shows 0), symbol and narrow symbol in a locale, and localized names in English and Spanish. No exchange rates. When: a money, tax or financial-math result has to be exact and reproducible (rounding, cents, rates). Not for: formatting an amount in any ISO 4217 currency for a locale via Intl (currency-format). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB."
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint=false, idempotentHint and destructiveHint=false, so the safety profile is covered; the description's 'solo lectura, sin red, sin estado guardado' largely restates them. It does earn its keep with genuinely new facts: determinism, hard limits (64 KB input, 1 s, 1 MB result) and the CLDR-vs-ISO caveat (COP shows 0 decimals), which affects rounding behavior.

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?

Front-loaded with the core statement, then clearly labeled sections (Cuándo / No para / Efectos secundarios / Determinista / Límites), which is easy to scan. It loses a point for the bilingual duplication and the awkward meta-reference to 'inputSchema.description' instead of closing the English sentence in place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description need not describe return values, and everything else an agent needs is covered: what the tool returns, when to use it, the alternative, side effects, determinism and operational limits. Nothing material is missing.

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%, so the baseline is 3, and the description goes past it by explaining that the symbol/narrow symbol is locale-dependent while names are fixed in English and Spanish, which clarifies the scope of the optional locale parameter. It still leaves the locale default/pattern and the code pattern to the schema, so not a 5.

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 ('Devuelve los datos de una moneda ISO 4217') and enumerates exactly what is returned: decimales, símbolo y nombre en inglés y español, plus an explicit exclusion ('Sin tasas de cambio'). It also names the distinct sibling it is not (currency-format), so an agent can separate the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Uses explicit 'Cuándo:' and 'No para:' framing: use it when money/tax/financial math must be exact and reproducible, and do not use it for locale/país amount formatting (currency-format). Positive trigger and named alternative with the selecting condition are both present.

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