Skip to main content
Glama

Text & Number Toolkit

Write a number in words

number_to_words
Read-onlyIdempotent

Cardinal, ordinal or year wording of a number in 56 languages (en, ar, fr, de, es, pt, it, nl, tr, ru, hi, ur, id, ja, ko…). Example: number 2026, language 'en', to 'year' → 'twenty twenty-six'. Response: result plus data_confidence, estimated_items[], sources[], data_version, warnings[]; deterministic (no AI inside), nothing logged.

Input Schema

NameRequiredDescriptionDefault
toNocardinal (default) | ordinal (1st, الأول) | year (nineteen ninety-nine).cardinal
numberYesNumber (integers or decimals; Arabic-Indic digits accepted).
languageNoTarget language code (56 supported).en

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely new behavioral facts — deterministic output with 'no AI inside', nothing logged, and a warning/confidence envelope — which matter for trusting the result. The return-field list partly duplicates the output schema, keeping it just short of 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?

Dense but front-loaded: the capability, mode list, and example come first, with the response/determinism note second. The response-field enumeration is somewhat compressed into a run-on list, but no sentence is wasted.

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 full annotation coverage and an output schema present, the description needs only to convey purpose, mode semantics, and trust characteristics — all of which it does. The one substantive gap is routing guidance relative to the near-synonym sibling amount_to_words, which is left to inference.

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%, so all three parameters are already documented in the schema, giving a baseline of 3. The description adds a little value by illustrating the 'to' enum in a worked example and noting Arabic-Indic digit acceptance is handled, but it introduces no new syntax or constraints for 'language' beyond what the schema states.

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 states a specific transformation (number → words) and enumerates the three variants it produces (cardinal, ordinal, year) across 56 languages, with a concrete worked example. It does not, however, distinguish itself from the sibling amount_to_words, which an agent could plausibly confuse with this tool.

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 is only implied through the example (number 2026, language 'en', to 'year'), with no explicit statement of when to pick this over amount_to_words or parse_number/format_number. It also doesn't point to list_languages for discovering valid language codes despite advertising 56 supported languages.

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