Skip to main content
Glama

text_numbers

Read-onlyIdempotent

utilpeek: Convert numbers to English words. For units use convert_units. Returns a number spelled out in English (cardinal, ordinal, year, or currency for 13 currencies, rounded half up to the minor unit; INR in lakh and crore by default) up to 10^36, or English number words ("two hundred and fifty-first") parsed back to a number, including to_words output (same style and currency). value is a decimal string or an integer, never a float. Invalid or out-of-range input is a 422 (not charged). Typically under 0.3 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "text_numbers"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoto_words (default: `value` to English words) or to_number (`text` to a number).to_words
onlyNostyle=currency: end with "only" (default false).
textNoto_number: English number words.
styleNocardinal (default), ordinal, currency or year (to_words: an integer 1-9999).cardinal
valueNoto_words: a decimal string or an integer (no floats: no rounding surprises).
currencyNostyle=currency: AUD, BRL, CAD, CHF, CNY, EUR, GBP, INR, JPY, MXN, PHP, SGD or USD (default).USD
lakh_croreNostyle=currency: Indian lakh and crore words (default: INR only).

Output Schema

NameRequiredDescriptionDefault
textNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
styleNo
valueNo
wordsNo
numberNo
sourceNo
currencyNo
rounded_toNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / style / description
      Previous value: -"to_words style: cardinal (default), ordinal, currency or year (an integer 1-9999)."New value: +"cardinal (default), ordinal, currency or year (to_words: an integer 1-9999)."
  2. Changed12 schema fields changed
    • removedInput schema / properties / currency / title
      Removed value: -"Currency"
    • removedInput schema / properties / lakh_crore / default
      Removed value: -null
    • removedInput schema / properties / lakh_crore / title
      Removed value: -"Lakh Crore"
    • removedInput schema / properties / mode / title
      Removed value: -"Mode"
    • removedInput schema / properties / only / default
      Removed value: -null
    • removedInput schema / properties / only / title
      Removed value: -"Only"
    • removedInput schema / properties / style / title
      Removed value: -"Style"
    • removedInput schema / properties / text / default
      Removed value: -null
    • removedInput schema / properties / text / title
      Removed value: -"Text"
    • removedInput schema / properties / value / default
      Removed value: -null
    • removedInput schema / properties / value / title
      Removed value: -"Value"
    • removedInput schema / title
      Removed value: -"text_numbersArguments"
  3. Changed2 schema fields changed
    • addedInput schema / properties / lakh_crore
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "style=currency: Indian lakh and crore words (default: INR only).",
      +  "title": "Lakh Crore"
      +}
    • addedInput schema / properties / only
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "style=currency: end with \"only\" (default false).",
      +  "title": "Only"
      +}
  4. Changed4 schema fields changed
    • addedInput schema / properties / currency / description
      Added value: +"style=currency: AUD, BRL, CAD, CHF, CNY, EUR, GBP, INR, JPY, MXN, PHP, SGD or USD (default)."
    • addedInput schema / properties / mode / description
      Added value: +"to_words (default: `value` to English words) or to_number (`text` to a number)."
    • addedInput schema / properties / style / description
      Added value: +"to_words style: cardinal (default), ordinal, currency or year (an integer 1-9999)."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "currency": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "error": {
      +      "description": "Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object."
      +    },
      +    "number": {},
      +    "rounded_to": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "source": {
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "style": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "text": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "value": {
      +      "type": [
      +        "string",
      +        "integer",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "words": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  5. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare a safe read-only idempotent operation, and the description goes well beyond them: 422 on invalid/out-of-range input (not charged), sub-0.3s latency, USD 0.001 price, 10 free calls per IP per UTC day, half-up rounding to the minor unit, and a 10^36 ceiling. These are exactly the operational facts an agent needs and none are in the structured fields.

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?

The core capability is front-loaded in the first sentence and the block is dense rather than padded. Pricing and free-tier text sit in the middle of the paragraph rather than at the end, which slightly interrupts the functional narrative.

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, return formatting need not be explained, and the description covers the remaining complexity: both modes, styles, currency set, rounding rule, range limit, error behavior, and cost. Nothing an agent needs to invoke it correctly 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, but the description adds cross-parameter meaning the schema does not: `value` must be a decimal string or integer and never a float, half-up rounding to the minor unit for currency, `style`/`currency` reused on the to_number side, and INR lakh/crore as the default for `lakh_crore`.

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?

"Convert numbers to English words" plus the reverse parse is a specific, bidirectional verb+resource statement. The description immediately distinguishes the two directions by naming the `mode` values and explicitly redirects unit conversion to the `convert_units` sibling.

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?

It gives an explicit exclusion ("For units use convert_units") and clarifies which direction to pick via `mode` (to_words vs to_number). It does not cover edge routing such as when to prefer a spellcheck or stats tool over this one, but the primary alternative is named.

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