Skip to main content
Glama
cn-mcp-kit

cn-mcp-kit

by yuannuo233

cn_number_parse

Converts Chinese numerals into Arabic digits, handling uppercase, traditional, year-style readings, and negatives. Returns a clear parse failure message when the input cannot be resolved.

Instructions

把中文数字转换成阿拉伯数字,如 三万五千零六 -> 35006。支持大写(壹贰叁)、繁体(萬億)、年份读法(二〇二六 -> 2026)和负数。无法解析时返回"无法解析"。

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

Input Schema

NameRequiredDescriptionDefault
textYes中文数字,如 三万五千零六

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden and does disclose the important behavioral trait: on failure it returns the literal string "无法解析" instead of raising an error, which changes how an agent should check the result. It also enumerates the numeral dialects accepted, so the agent knows what will not be rejected. It stops short of stating whether the result is a number or a string on success.

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, front-loaded with the verb and an example, followed by the supported variants and the failure mode. Every clause carries information; nothing is redundant padding.

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 one-parameter, side-effect-free conversion tool with no annotations or output schema, the description covers the accepted input forms and the failure sentinel, which is most of what an agent needs. The only minor gap is that it never says whether a successful result comes back as an integer or a string.

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% and the single parameter is already documented in the schema with the identical example, so the description adds little per-parameter meaning. The format variants it lists describe the tool's capability rather than clarifying the parameter itself; 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 gives a specific verb and resource ('把中文数字转换成阿拉伯数字') plus a concrete worked example (三万五千零六 -> 35006), which is the exact inverse of the sibling number_to_chinese. An agent can tell the direction of conversion apart from siblings without opening the schema.

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?

It scopes the input space (uppercase 壹贰叁, traditional 萬億, year-style reading 二〇二六, negatives), which implicitly tells the agent when the tool applies. However, it never states when NOT to use it or names an alternative such as number_to_chinese for the reverse direction.

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