Skip to main content
Glama

中国社保与薪税计算器 (China Shebao & Payroll Tax MCP)

生育津贴与产假待遇测算

calculate_maternity_allowance
Read-onlyIdempotent

分开测算基金生育津贴、单位补差和基金不支付期间的假期工资。广东按已核验规则:奖励假80天不计津贴,难产加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": {
      "monthlySalary": "<monthlySalary>"
    },
    "name": "calculate_maternity_allowance"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNo所在城市名称或代码。目前仅广东地方规则已核验;其他地区需手填当地假期和基金计发天数。
customDaysNo自定义产假总天数(天),不自动等同于基金计发天数。
deliveryTypeNo国家基础规则:normal(顺产98天)、csection(难产+15天,广东+30天)、abortion_under_4m(未满4个月15天)、abortion_over_4m(满4个月42天)。地方不同天数请用 customDays 与 allowanceDays 覆盖。
allowanceDaysNo医保核定的基金津贴计发天数(不得超过产假总天数);未填默认仅基础产假及难产、多胞胎增加天数,不含奖励假。
monthlySalaryYes用人单位上年度职工月平均缴费工资(元/月,单位生育保险申报计发基数,非个人工资)。
multipleCountNo多胞胎生育数量(单胎为1,双胞胎为2产假+15天,三胞胎为3产假+30天)。
employeeSalaryNo女职工产假前月正常工资(元/月,可选;用于测算用人单位差额补足)。
localExtraDaysNo地方奖励假天数:广东默认80天且不计津贴,其他地区默认0(待核对),不是基金计发天数。

Output Schema

NameRequiredDescriptionDefault
isTaxFreeYes仅在总待遇已知且全部属于基金津贴时为true。
totalDaysYes
canonicalUrlYes
totalReceivedYes税前总待遇;未填写职工原工资时为null,单位支付部分未扣个税。
dailyAllowanceYes
totalAllowanceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / allowanceDays
      Added value: +{
      +  "description": "医保核定的基金津贴计发天数(不得超过产假总天数);未填默认仅基础产假及难产、多胞胎增加天数,不含奖励假。",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedInput schema / properties / city / description
      Previous value: -"所在城市名称(用于自动带出各省人口条例规定的产假奖励天数,如广东80天,多数省份60天)。"New value: +"所在城市名称或代码。目前仅广东地方规则已核验;其他地区需手填当地假期和基金计发天数。"
    • changedInput schema / properties / customDays / description
      Previous value: -"自定义产假总天数(天,可选;若输入则直接按此总天数核算)。"New value: +"自定义产假总天数(天),不自动等同于基金计发天数。"
    • changedInput schema / properties / deliveryType / description
      Previous value: -"分娩/流产情形:normal(单胎顺产98天,默认)、csection(难产/剖宫产+15天)、abortion_under_4m(流产未满4个月15天)、abortion_over_4m(流产满4个月42天)。"New value: +"国家基础规则:normal(顺产98天)、csection(难产+15天,广东+30天)、abortion_under_4m(未满4个月15天)、abortion_over_4m(满4个月42天)。地方不同天数请用 customDays 与 allowanceDays 覆盖。"
    • changedInput schema / properties / localExtraDays / description
      Previous value: -"地方条例奖励假天数(天,可选;默认按省份标准匹配)。"New value: +"地方奖励假天数:广东默认80天且不计津贴,其他地区默认0(待核对),不是基金计发天数。"
    • addedOutput schema / properties / isTaxFree / description
      Added value: +"仅在总待遇已知且全部属于基金津贴时为true。"
    • addedOutput schema / properties / totalReceived / description
      Added value: +"税前总待遇;未填写职工原工资时为null,单位支付部分未扣个税。"
    • changedOutput schema / properties / totalReceived / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "null"
      +]
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare this a read-only, idempotent, non-destructive, closed-world calculation, so the safety profile is covered. The description adds genuinely new behavioral context: results are a pre-tax estimate, the employer top-up portion is not guaranteed tax-free, and non-Guangdong output is explicitly an unverified approximation. It does not discuss rounding/precision of the figures, which is the remaining gap.

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?

Three compact sentences: what it computes, the regional rule split with an actionable instruction, then the tax caveat. Everything is front-loaded and nothing is redundant, though the middle sentence is dense enough that an agent may need a second pass to parse the conditional rules.

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 8 parameters, one required, a full output schema, and complete annotations, the description covers the open questions an agent would have: regional coverage limits, which fields to override, and the tax disclaimer. Only minor gaps remain, such as whether salary inputs are monthly gross and how the employer differential is computed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description nevertheless reinforces the two most error-prone distinctions outside the schema text — that local reward leave days are not the same as fund-approved allowance days, and that non-Guangdong users must fill both manually — which meaningfully reduces misuse.

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 opens with a specific verb-plus-resource statement ('分开测算基金生育津贴、单位补差和基金不支付期间的假期工资') and enumerates the three components that are computed separately. Maternity benefits are unmistakably distinct from the other calculate_* siblings (income tax, pension, severance, take-home pay), so an agent can select it without ambiguity.

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?

It clearly states the accuracy boundary: Guangdong follows verified rules (80 days reward leave excluded from allowance, +30 days for complicated delivery), while other regions are only a national-base trial run requiring the user to hand-enter local reward days and fund-approved days. It does not name a sibling tool to use instead for other regions, so the routing guidance stops one step short of a 5.

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.