Skip to main content
Glama

MiaoToolbox (妙用盒)

人民币大写与发票价税分离(妙用盒)

convert_rmb_and_invoice_tax
Read-onlyIdempotent

按财政部《会计基础工作规范》与人行《支付结算办法》提供:人民币中文大写、增值税含税↔不含税分位平账拆算(0–50% 税率)、以及支票出票日期大写(cheque_date,1/2/10月与1-9/10/20/30日加零防变造)。

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": {
      "mode": "<mode>"
    },
    "name": "convert_rmb_and_invoice_tax"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNo【cheque_date】公历出票日期 YYYY-MM-DD
modeYes模式:rmb / invoice / both / cheque_date(支票出票日期大写)
amountNo【rmb/invoice/both】金额(元,最多 2 位小数,绝对值 <= 999,999,999,999.99;invoice/both 不可为负)
directionNo【invoice/both】拆算方向:from_tax_included(含税倒算,默认)或 from_tax_excluded(不含税正算)from_tax_included
taxRatePercentNo【invoice/both】增值税税率百分比(0–50,如 13 表示 13%)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / amount / description
      Previous value: -"金额(元,最多 2 位小数,绝对值 <= 999,999,999,999.99;invoice/both 不可为负)"New value: +"【rmb/invoice/both】金额(元,最多 2 位小数,绝对值 <= 999,999,999,999.99;invoice/both 不可为负)"
    • addedInput schema / properties / date
      Added value: +{
      +  "description": "【cheque_date】公历出票日期 YYYY-MM-DD",
      +  "maxLength": 16,
      +  "type": "string"
      +}
    • changedInput schema / properties / mode / description
      Previous value: -"模式:rmb(仅转人民币大写)/ invoice(仅价税分离)/ both(同时输出价税分离与含税大写)"New value: +"模式:rmb / invoice / both / cheque_date(支票出票日期大写)"
    • changedInput schema / properties / mode / enum
      Previous value: -[
      -  "rmb",
      -  "invoice",
      -  "both"
      -]New value: +[
      +  "rmb",
      +  "invoice",
      +  "both",
      +  "cheque_date"
      +]
    • changedInput schema / required
      Previous value: -[
      -  "mode",
      -  "amount"
      -]New value: +[
      +  "mode"
      +]
  2. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real domain behavior beyond that: the accepted 0–50% tax-rate band, the anti-tampering zero-padding rule for 1/2/10 months and 1-9/10/20/30 days on cheque dates, and the 分位平账 balancing guarantee. It says nothing about error handling or the exact response shape.

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?

A single front-loaded sentence that packs the three functions, the regulatory references and the edge-case rule without filler. Every clause carries information an agent can act on.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter computational tool with no output schema, the description never indicates what the returned value looks like (e.g. the uppercase string, the split amounts, the formatted date), which matters for this kind of converter. Inputs are fully documented via the schema, so the remaining gap is on the output side only.

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 the schema already explains mode, amount bounds, direction and taxRatePercent. The description reinforces the rate range and the cheque_date case but adds little beyond what the schema states; the direction parameter (from_tax_included vs from_tax_excluded) is only gestured at via '含税↔不含税'.

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 three concrete capabilities (RMB Chinese uppercase conversion, VAT tax-included↔tax-excluded split with per-cent balancing, and cheque issue-date uppercase) plus the regulatory basis, so the agent knows exactly what the tool produces. It does not name any sibling tool to distinguish itself from (e.g. calculate_cn_income_tax), leaving that differentiation to the domain wording alone.

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 only implied: the phrasing suggests the tool is for Chinese-format money rendering and invoice tax splitting rather than general tax or unit math. There is no explicit when-to-use/when-not-to-use statement and no pointer to an alternative tool for adjacent needs such as income tax or unit conversion.

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