Skip to main content
Glama

Write a number in words

number_to_words
Read-onlyIdempotent

Write a number in Vietnamese and English words, for an invoice or a receipt: 1.250.000 becomes "một triệu hai trăm năm mươi nghìn" and "one million two hundred fifty thousand". A dot or comma before exactly three digits groups thousands (1.250, 12,500); before other digits it is the decimal mark (12,5 or 2.75). Free; the Vietnamese money line is included.

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": {
      "number": "<number>"
    },
    "name": "number_to_words"
  }
}

Input Schema

NameRequiredDescriptionDefault
chanNoEnd a whole money line with "chẵn". Default true.
fourNoRead 24 as "hai mươi tư" (tu) or "hai mươi bốn" (bon).tu
zeroNoThe word for a missing tens digit: "linh" or "lẻ".linh
moneyNoInclude the Vietnamese money line (đồng). Default true.
numberYesThe number to read, like "1.250.000", "1250000" or "12,5".

Output Schema

NameRequiredDescriptionDefault
moneyYes
englishYes
vietnameseYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish the safety profile (readOnly, idempotent, non-destructive), so the description is free to add cost ('Free') and output-shape context ('the Vietnamese money line is included'). Most valuably it discloses the ambiguous separator-parsing rule — a dot/comma before exactly three digits groups thousands, otherwise it is a decimal mark — which the agent could not infer from the schema.

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?

Purpose and a worked example are front-loaded, then the parsing rule, then the cost/output note — a sensible order with no filler. The 'Free; the Vietnamese money line is included' fragment is slightly clipped but still informative.

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 an output schema present, the description needn't explain return values, and it covers the main ambiguity (number formatting/separators) explicitly. The only shortfall is that the dialect options are left entirely to the schema, which is acceptable at full coverage.

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 description coverage is 100%, so number, chan, four, zero and money are all documented in the schema already. The description reinforces the money line behavior and the accepted input formats, but adds nothing about the dialect switches (chan/four/zero) beyond what the schema states, so the baseline 3 applies.

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 names a specific verb and resource ('Write a number in Vietnamese and English words') and backs it with a concrete worked example, "1.250.000 becomes ...". No sibling tool does anything similar, so an agent can identify this immediately.

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 states the intended context ('for an invoice or a receipt') and notes the tool is free, which helps an agent decide to call it. It gives no explicit exclusions or alternative routes, but no sibling overlaps, so the gap is minor.

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