Skip to main content
Glama

util_number_format

Read-only

Number parse + locale format — Parse n= in almost any human or locale form (1.234.567,89 / 1 234,56 / 12,34,567 lakh grouping / (1,200.50) accounting negatives / $12.5k / 3.2 million / 2 crore / 15% / 0xFF 0b1010 0o17 / Roman numerals / 1.5e6 / leading or trailing currency symbol or ISO code), flagging ambiguous separators (from_locale= forces a reading), then format it for locale= (default en-US): standard, plain, fixed (decimals=, also banker's half-even), compact short/long, scientific, engineering, significant digits (sig=), percent, currency (currency= or detected: symbol, accounting, code, name, compact, minor digits), integer facts (binary/octal/hex/base36, two's complement, Roman, English ordinal), SI and IEC byte sizes, and side-by-side formatting for locales= (up to 12; default 8 common locales). Exact for integers beyond 2^53. Offline. Price: $0.001 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "n": "<n>"
    },
    "name": "util_number_format"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes1.234.567,89 €

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations cover only the safety profile, and the description adds real operational facts beyond them: it is offline, exact for integers beyond 2^53, flags ambiguous separators, defaults to en-US and 8 common locales, and is a paid call ($0.001 USDC via x402). The only friction is that "Offline" sits awkwardly against openWorldHint=true, though the x402 payment note explains why the server may have set that hint.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the body is one enormous run-on sentence built from slash-separated parenthetical lists, which makes it hard to scan and easy to miss the single most important warning (ambiguous-separator handling). The content is relevant, yet it is packed rather than structured.

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 carries the return-value burden and does so thoroughly by enumerating every output family (compact, scientific, percent, currency, byte sizes, side-by-side locales). The remaining gap is the mismatch between the described optional parameters and the schema, which leaves the agent's actual invocation surface ambiguous.

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 coverage is 100% for the single documented parameter, so the baseline is 3, and the description does earn some of that by spelling out what n accepts (lakh grouping, accounting parentheses, hex/roman/engineering, currency symbols). The problem is that it extensively advertises locale=, from_locale=, decimals=, sig=, currency= and locales=, none of which appear in the input schema — an agent may attempt calls with parameters that will fail validation.

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 opens with a specific verb pair and resource ("Number parse + locale format") and then enumerates the exact input grammars and output families it handles, so an agent can separate it from siblings like util_number_words or util_convert without opening any schema.

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

Usage Guidelines3/5

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

Usage conditions are implied rather than stated: it notes that ambiguous separators are flagged and that from_locale= forces a reading, and it gives a default (en-US), which tells the agent how to behave in ambiguity. However there is no explicit when-to-use/when-not-to-use guidance and no named alternative among the sibling utilities for number-to-words or unit conversion.

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