Skip to main content
Glama

Rewrite text as spoken Vietnamese for TTS

vn_text_speech_normalize
Read-onlyIdempotent

Prepares Vietnamese text for text-to-speech by converting numbers, VND amounts, percentages, phone numbers, and dd/mm/yyyy dates into spoken forms; skips and lists decimals and partial dates.

Instructions

Rewrite numbers, VND amounts (1.250.000đ, 500k), percentages, phone numbers and dd/mm/yyyy dates in text as spoken Vietnamese for text-to-speech. Decimals and partial dates are left unchanged and listed in skipped. Returns text, changes, skipped.

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": "vn_text_speech_normalize"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety bar is low. The description adds genuinely new substance: the exact edge-case policy (decimals and partial dates untouched) and the shape of the result (text, changes, skipped), which matters because there is no output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, zero waste, with the scope front-loaded before the edge-case policy and return values. Every clause adds information an agent would otherwise lack.

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?

For a single-string, read-only transformer with no output schema, listing the three returned fields and the skipped-behavior policy covers everything an agent needs to invoke and interpret it.

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?

There is one parameter, 'text', with 0% schema description coverage, so the description must carry the meaning. It effectively defines what the input should contain by listing the token classes it recognizes, but it never says whether text is required to be a whole sentence, whether batch input is accepted, or any length limits.

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?

Names a specific verb+resource ('rewrite numbers, VND amounts, percentages, phone numbers and dd/mm/yyyy dates ... as spoken Vietnamese for TTS') and enumerates exactly the token classes it handles. That scope is narrow enough to separate it from formatting siblings such as vn_money_to_words without needing to name them.

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?

States the context of use (preparing text for text-to-speech) and gives an explicit exclusion: decimals and partial dates are left alone and reported in skipped. It stops short of naming an alternative tool for those unsupported cases, so it is not full when/when-not/alternatives coverage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.