Skip to main content
Glama
cn-mcp-kit

cn-mcp-kit

by yuannuo233

hanzi_pinyin

Converts Chinese text to pinyin with word-aware handling of polyphonic characters (重庆 → chóng qìng, 银行 → yín háng). Use it to annotate pronunciation, build pinyin practice exercises, or verify how characters are read.

Instructions

把中文转成拼音,能按词定多音字(重庆 -> chóng qìng,银行 -> yín háng)。用于给汉字标注读音、做注音练习或核对发音。

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

Input Schema

NameRequiredDescriptionDefault
textYes中文文本
toneNo是否带声调(默认 true,如 hǎo)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden, and it does disclose the key trait: context-aware polyphone disambiguation, demonstrated with two examples, and the sample outputs reveal the tone-marked, syllable-separated return format. It says nothing about handling of non-Chinese characters, punctuation, or latin text, which is a real gap for a text-conversion tool.

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 tight sentences: capability plus disambiguation evidence first, use cases second. Every clause carries information and the parenthetical examples earn their space.

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, side-effect-free conversion tool with a fully described schema, this is nearly complete: purpose, differentiator, and use cases are all present. Minor gaps remain around edge-case inputs and syllable spacing, which would matter to an agent crafting a call.

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 coverage is 100%, with both 'text' and 'tone' documented in-schema, so the schema already does the heavy lifting and baseline 3 applies. The description reinforces the default tone-marked output via its examples but adds no new semantics for the 'tone' flag.

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 ('把中文转成拼音') plus a distinguishing capability with worked examples (重庆 -> chóng qìng, 银行 -> yín háng). The resource is unmistakable, but it never explicitly contrasts itself with conversion-adjacent siblings like s2t_convert or fullwidth_convert.

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?

Gives concrete use cases ('给汉字标注读音、做注音练习或核对发音'), which is clear context for when to reach for it. It stops short of exclusions or naming an alternative for, say, number-to-Chinese conversion, so it doesn't reach a 5.

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