Skip to main content
Glama
cn-mcp-kit

cn-mcp-kit

by yuannuo233

amount_to_chinese

Convert numeric amounts into Chinese RMB capitalized text, including negative values, to format monetary figures for financial documents and invoices.

Instructions

把数字金额转换成人民币大写,支持负数(加"负"字)。如 1234.56 -> 壹仟贰佰叁拾肆元伍角陆分

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": {
      "amount": "<amount>"
    },
    "name": "amount_to_chinese"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYes金额数字(元),最多两位小数,如 1234.56

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden and does deliver real behavioral facts: negative values are supported and prefixed with '负', and the output format is shown by example. However, edge behaviors that would actually matter for a money converter are undisclosed — rounding or rejection for more than two decimals, handling of zero, upper magnitude limits, and whether errors are raised or values truncated.

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 compact clauses plus one example, front-loaded with the core action and immediately followed by the negative-number caveat and a concrete input→output illustration. There is no filler, repetition of the tool name, or hedging language.

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 single-parameter, side-effect-free formatting function with no output schema, the description plus the worked example gives an agent enough to call it correctly and predict its return string. It falls short of complete only because output type is never stated explicitly (only implied by the example) and boundary handling for invalid precision or zero is omitted.

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% and the single parameter 'amount' is fully documented in the schema (金额数字(元),最多两位小数,如 1234.56). The description only restates the same idea with the same example, adding no syntax, unit, or precision semantics beyond the schema, so the baseline 3 applies.

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?

The description names a specific verb and resource, '把数字金额转换成人民币大写' (convert a numeric amount into RMB uppercase), and adds the example '1234.56 -> 壹仟贰佰叁拾肆元伍角陆分', which makes the output form unambiguous. It implicitly distinguishes itself from the generic number_to_chinese sibling by scoping to monetary amounts (元/角/分), though it never names that sibling explicitly.

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 implied by the domain ('金额', RMB uppercase) rather than stated: an agent can infer it should call this for financial amounts rather than generic number conversion. There is no explicit when-to-use/when-not guidance, no mention of alternatives such as number_to_chinese, and no note on what happens for non-monetary numbers.

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