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-even 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. 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.
styleNoto_words style: cardinal (default), ordinal, currency or year (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. 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"
  2. 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"
      +}
  3. 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"
      +}
  4. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources