Skip to main content
Glama

WritersLogic business agents

speech-normalize

Normalize numbers, currency, phone numbers and units for text-to-speech — Rewrites digits in up to 20000 characters of text into spoken words for a TTS engine, for locales en-US and en-GB: cardinals, ordinals, years (with a preceding cue such as "in" or a month) and decades, decimals, percentages, currency with ISO 4217 minor units ("$12.50" -> "twelve dollars and fifty cents"), phone numbers read digit by digit, and SI/common units with locale spelling (meter/metre). O

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": {
      "text": "<text>"
    },
    "name": "speech-normalize"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
localeNoBCP 47 tag. en-US (default) and en-GB are supported; anything else returns unsupported.

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?

With no annotations, the description carries the full burden and does disclose meaningful behavior: the 20000-character limit, supported locales en-US/en-GB, locale-dependent spelling (meter/metre), and the exact rewrite semantics with a concrete example ('$12.50' -> 'twelve dollars and fifty cents'). It omits error handling, whether output length can differ substantially from input, and any guarantee of idempotence.

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 content is front-loaded and dense, but the final sentence ends with a dangling 'O', indicating a truncated or malformed fragment that leaks into the definition. Aside from that defect the wording earns its place, with the concrete example adding real value.

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?

For a two-parameter transformer with no output schema, the description adequately explains what the return value is (the same text with digits spelled out) and gives a sample mapping. Errors and edge-case behavior for partially normalized text are the main omissions.

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 50%, so the description usefully compensates: it restates the 20000-character bound on text, names the default locale (en-US), and specifies which locale values are accepted, matching the schema's 'unsupported' note. It adds no detail about BCP 47 fallback behavior or how ambiguous numeric strings are resolved.

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?

States a specific verb and resource ('Normalize numbers, currency, phone numbers and units for text-to-speech') and enumerates the token classes handled (cardinals, ordinals, years, decimals, percentages, currency, phone numbers, units). It does not distinguish itself from the similarly-named sibling quote-normalize, so sibling differentiation is missing.

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 by 'for text-to-speech' and 'for a TTS engine' — an agent can infer it belongs in a pre-TTS pipeline. There is no explicit when-to-use/when-not guidance, no note about what to do with unsupported locales beyond the schema's 'unsupported' mention, and no routing to alternatives.

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