Skip to main content
Glama

MiaoToolbox (妙用盒)

国内个税与年终奖对比试算(妙用盒)

calculate_cn_income_tax
Read-onlyIdempotent

按现行中国大陆个人所得税政策(月基本减除 5,000 元、7 级综合所得超额累进税率)试算:1) mode="monthly_withholding" 1–12 月累计预扣明细与汇算;2) mode="bonus_compare" 年终奖单独计税 vs 并入综合省税对比与缩水区检测;3) mode="reverse_annual" 按全年目标税后实发总额按分反推全年税前收入并正向验算。

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

Input Schema

NameRequiredDescriptionDefault
modeYes模式:monthly_withholding / bonus_compare / reverse_annual(年度税后反推税前)
annualBonusNo【bonus_compare】税前年终奖金额(元)
monthsCountNo【monthly_withholding】计算月数(1–12,配合 monthlySalary 使用,默认 12)
annualSalaryNo【bonus_compare】年度税前工资薪金总额(不含年终奖,元)
monthlySalaryNo【monthly_withholding】统一税前月薪(元,与 monthlySalaries / monthlyEntries 三选一)
monthlyEntriesNo【monthly_withholding】1–12 月逐月完整收入与扣除明细
monthlySalariesNo【monthly_withholding】1–12 月逐月税前月薪数组
annualOtherDeductionNo【bonus_compare/reverse_annual】年度其他依法扣除总额(元,默认 0)
targetAnnualAfterTaxNo【reverse_annual】目标全年税后实发总额(元)
annualSocialInsuranceNo【bonus_compare/reverse_annual】年度个人五险一金总额(元,默认 0)
monthlyOtherDeductionNo【monthly_withholding】每月其他依法扣除(元,默认 0)
annualSpecialDeductionNo【bonus_compare/reverse_annual】年度专项附加扣除总额(元,默认 0)
monthlySocialInsuranceNo【monthly_withholding】每月个人五险一金(元,默认 0)
monthlySpecialDeductionNo【monthly_withholding】每月专项附加扣除(元,默认 0)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / annualOtherDeduction / description
      Previous value: -"【bonus_compare】年度其他依法扣除总额(元,默认 0)"New value: +"【bonus_compare/reverse_annual】年度其他依法扣除总额(元,默认 0)"
    • changedInput schema / properties / annualSocialInsurance / description
      Previous value: -"【bonus_compare】年度个人五险一金总额(元,默认 0)"New value: +"【bonus_compare/reverse_annual】年度个人五险一金总额(元,默认 0)"
    • changedInput schema / properties / annualSpecialDeduction / description
      Previous value: -"【bonus_compare】年度专项附加扣除总额(元,默认 0)"New value: +"【bonus_compare/reverse_annual】年度专项附加扣除总额(元,默认 0)"
    • changedInput schema / properties / mode / description
      Previous value: -"模式:monthly_withholding(月度累计预扣)或 bonus_compare(年终奖对比)"New value: +"模式:monthly_withholding / bonus_compare / reverse_annual(年度税后反推税前)"
    • changedInput schema / properties / mode / enum
      Previous value: -[
      -  "monthly_withholding",
      -  "bonus_compare"
      -]New value: +[
      +  "monthly_withholding",
      +  "bonus_compare",
      +  "reverse_annual"
      +]
    • addedInput schema / properties / targetAnnualAfterTax
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "maxLength": 80,
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  ],
      +  "description": "【reverse_annual】目标全年税后实发总额(元)"
      +}
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/non-destructive, so the safety profile is covered. The description adds substantive behavioral context beyond that: the policy baseline (5,000 CNY basic deduction, 7-bracket progressive rates), the 缩水区 cliff detection in bonus_compare, and that reverse_annual forward-verifies its answer. Precision/rounding and output format are still unstated.

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

Conciseness4/5

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

A single front-loaded sentence with the policy basis first and a clean 1)/2)/3) mode enumeration. Dense but every clause carries information; the mild repetition of enum literals is offset by the per-mode behavior it attaches.

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?

With 14 parameters and no output schema, the description carries the return-value burden, and it does convey what each mode returns (monthly withholding detail plus annual settlement, net-saving comparison, back-solved gross with verification). Missing only granularities like output field shape and handling of mutually exclusive inputs.

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 each parameter already carries a mode tag, so the schema does the heavy lifting. The description adds only the policy assumption behind the calculation, not any parameter-level detail such as allowed ranges or mutually exclusive combinations (monthlySalary vs monthlySalaries vs monthlyEntries).

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 (试算/calculate) and precise resource (中国大陆个人所得税,含年终奖对比与税后反推), then enumerates the three computations it performs. An agent can distinguish this from payroll-domain siblings such as calculate_interest or calculate_mortgage purely from this sentence.

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?

The numbered enumeration of modes functions as routing guidance: choose monthly_withholding for monthly salary data, bonus_compare when comparing annual-bonus treatment, reverse_annual when starting from a target net amount. However, no exclusions are stated (e.g., other jurisdictions, non-wage income) and no alternatives are named.

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