Skip to main content
Glama

calculate cn labor exit

calculate_cn_labor_exit
Read-onlyIdempotent

China economic compensation N (1 month per year; 6 months or more counts as a year, under 6 months as half; 劳动合同法 第47条), the cap at 3x the local average monthly wage which also limits N to 12 years, 2N for unlawful termination (第87条), one month in lieu of notice (第40条), and unemployment benefit duration 12/18/24 months by insured years (失业保险条例 第17条). Items also list the MOHRSS minimum wages as of 2026-10-01 (Beijing 2,540, Shanghai 2,740, Guangdong tiers 2,680/2,300/2,040, Shenzhen 2,700 CNY a month). Also annual leave by cumulative years (5/10/15 days, 职工带薪年休假条例) and the 1-year labour arbitration limitation date (劳动争议调解仲裁法). China mainland (flk.npc.gov.cn), as of 2026-11-21. General information and estimates only: no legal advice, no representation, no filing; values that could not be verified are flagged in the result, not computed.

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": {
      "start": "<start>",
      "end": "<end>",
      "monthlyWage": "<monthlyWage>"
    },
    "name": "calculate_cn_labor_exit"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYesLast day of employment
startYesEmployment start date
noNoticeNoTerminated under article 40 without 30 days' notice
unlawfulNoUnlawful termination (2N)
monthlyWageYesAverage monthly wage over the last 12 months (CNY)
insuredYearsNoYears paying unemployment insurance
cumulativeYearsNoCumulative years worked at all employers, for annual leave
localAverageMonthlyNoLocal average monthly wage published by the city (CNY)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / cumulativeYears
      Added value: +{
      +  "description": "Cumulative years worked at all employers, for annual leave",
      +  "maximum": 60,
      +  "minimum": 0,
      +  "type": "number"
      +}
  2. Added

TDQS

B3.2/5.0
Behavior3/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 behavioral context: values that cannot be verified are flagged in the result rather than computed, and it pins the legal source and as-of dates. It does not say what happens when optional inputs like localAverageMonthly or insuredYears are omitted, which matters because several outputs depend on them.

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

Conciseness3/5

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

The core computation rules are front-loaded in the opening clauses, which is good. However, it is one sprawling run-on sentence that spends substantial length listing 2026 minimum-wage figures by city and tier — reference data rather than guidance — making it harder to scan for what the tool actually needs.

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 read-only, 8-parameter, multi-rule calculator with no output schema, the description covers the governing rules, jurisdiction, as-of dates, and the estimation disclaimer adequately. Residual gaps are the optional-input behavior and any hint about the shape of the returned items, but nothing critical to calling it is missing.

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 baseline is 3. The description does map several parameters to their legal effect (unlawful -> 2N, noNotice -> one month in lieu, insuredYears -> 12/18/24 benefit months, cumulativeYears -> 5/10/15 leave days, localAverageMonthly -> 3x cap and 12-year limit), which is genuine added meaning beyond the schema's terse labels.

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 enumerates precisely what the tool computes for China: N compensation, 2N for unlawful termination, notice in lieu, unemployment benefit duration, minimum wage reference, annual leave, and arbitration limitation. Jurisdiction ('China mainland') distinguishes it from the ES/FR/JP/TW/UK labor-exit siblings, though the tool name already carries much of that signal.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use statement, no prerequisites (e.g. that localAverageMonthly is needed to apply the 3x cap), and no routing guidance — notably, a separate calculate_annual_leave sibling exists and the overlap with the annual-leave part of this tool is never addressed. Usage must be inferred from the legal citations and jurisdiction note.

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.