Skip to main content
Glama

format_number

Format numbers as currency, percentages, or with thousands/decimal separators using locale-specific conventions to ensure consistent data presentation.

Instructions

Format numbers (currency, percentage, thousands separator, decimal)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
numberYesNumber to format
formatYesFormat type
localeNoLocale (default: en-US)
currencyNoCurrency code for currency format (default: USD)
minimum_fraction_digitsNoMinimum fraction digits (0-20)
maximum_fraction_digitsNoMaximum fraction digits (0-20)
Behavior2/5

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

No annotations are provided, so the description carries full burden. It states what the tool does but doesn't disclose behavioral traits like whether it's read-only, what happens with invalid inputs, performance characteristics, or what the output looks like. For a formatting tool with no annotation coverage, this leaves significant gaps in understanding the tool's behavior.

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 extremely concise and front-loaded with all necessary information in a single parenthetical phrase. Every word earns its place, with no wasted text or unnecessary elaboration. The structure efficiently communicates the core functionality.

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?

Given the tool's moderate complexity (6 parameters, no output schema, no annotations), the description is minimally complete. It covers what the tool does but lacks information about output format, error handling, or behavioral constraints. For a formatting utility that transforms data, more context about the result would be helpful, though the 100% schema coverage helps compensate.

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 schema already documents all 6 parameters thoroughly. The description adds minimal value beyond the schema - it lists the format types (which are already in the enum) but doesn't provide additional context about parameter interactions or usage patterns. Baseline 3 is appropriate when schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Format numbers' with specific format types listed (currency, percentage, thousands separator, decimal). It uses a specific verb ('format') and resource ('numbers'), though it doesn't explicitly distinguish from sibling tools like 'format_bytes' or 'format_json' beyond the number focus.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. There's no mention of when to choose this over other formatting tools (like format_bytes for byte formatting) or when not to use it. Usage is implied by the format types listed but not explicitly stated.

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/Angry-Robot-Deals/mcp-sys8'

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