Skip to main content
Glama

currency-format

Format numbers as locale-aware currency strings and retrieve currency symbols, separators, and names for any ISO 4217 currency. Supports 150+ currencies for financial reports, invoices, and cross-regional price display.

Instructions

Locale-aware currency formatting and symbol lookup for any ISO 4217 currency. Formats numbers as currency strings (e.g. 1234.56 USD → '$1,234.56', EUR in German locale → '1.234,56 €'), returns currency symbol, decimal separator, grouping separator, and currency name. Pure computation — no API key, no upstream latency. Supports 150+ currencies and custom locale overrides. Use for: financial report generation, invoice display, DeFi amount formatting, cross-regional price display.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountNoNumeric amount to format (e.g. 1234.56).
currencyNoISO 4217 currency code (e.g. 'USD', 'EUR', 'JPY', 'KRW', 'BTC is not supported — ISO only).
localeNoBCP 47 locale tag (e.g. 'en-US', 'de-DE', 'ja-JP'). Defaults to the canonical locale for the currency.
modeNo'format' returns the formatted string only. 'info' returns symbol and separators only. 'both' returns everything. Default: 'both'.
Behavior3/5

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

With no annotations, the description carries full burden. It mentions pure computation, no latency, and 150+ currencies. But it doesn't specify error behavior for invalid inputs or the exact structure of multiple-mode outputs, leaving gaps.

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?

Six sentences, well-structured with purpose first, then use cases. No unnecessary words; every sentence earns its place.

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

Completeness3/5

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

No output schema provided. The description implies return types via examples but does not explicitly define the structure for 'info' and 'both' modes (e.g., whether they return JSON objects). More completeness needed.

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 has 100% parameter descriptions. The description adds value by explaining modes, giving examples, and noting BTC exclusion, which aids parameter understanding beyond the schema.

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 it performs locale-aware currency formatting and symbol lookup for ISO 4217 currencies, with examples. It distinguishes itself from other tools by being a pure computation utility.

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 lists explicit use cases like financial report generation and invoice display, and notes it requires no API key. However, it does not mention when not to use it or provide alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/thebrierfox/the-stall'

If you have feedback or need assistance with the MCP directory API, please join our Discord server