Skip to main content
Glama

ChinaVisaCalc — China Work Permit Points, Z-Visa, Apostille & Expat Tax Engine

In-China Work Permit Transfer & 30-Day Stay Permit Runway Calculator

calculate_job_transfer_runway_deadlines
Read-onlyIdempotent

Compute statutory dates under PRC Labor Contract Law Articles 37 and 50 from a resignation date, pinpointing the 15-day release letter deadline, Day+20 filing cutoff, T-Visa expiry, and arbitration escalation steps.

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": {
      "resignationDate": "<resignationDate>"
    },
    "name": "calculate_job_transfer_runway_deadlines"
  }
}

Input Schema

NameRequiredDescriptionDefault
resignationDateYesLast working day or official resignation date in YYYY-MM-DD format.
employerWithholdingReleaseNoInclude labor arbitration & unilateral SAFEA administrative cancellation SOP when former employer withholds papers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered and the bar is lower. The description adds substantive context by naming the statutory articles and the milestones returned, but it omits calculation caveats an agent would want — whether 'Day+20' uses calendar or working days, holiday handling, or that outputs are advisory rather than legal advice.

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 starts with the verb and action, then lists deliverables. No filler, no restatement of the title.

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 only two parameters and no output schema, the description usefully enumerates what comes back (four milestone dates plus escalation steps), filling the gap left by the missing output schema. It stops short of describing the response's shape or ordering, which an agent calling it blind would still want.

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 both parameters are already documented and the baseline is 3. The description mentions 'arbitration escalation steps', which loosely maps to employerWithholdingRelease, but it adds no format, precedence, or default semantics beyond what the schema states.

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?

Uses a specific verb ('Compute statutory dates') plus the legal basis (PRC Labor Contract Law Articles 37 and 50) and the input that drives it ('from a resignation date'). It then enumerates the exact artifacts produced — 15-day release letter deadline, Day+20 filing cutoff, T-Visa expiry, arbitration escalation — which cleanly separates it from the sibling score/policy/tax tools.

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 trigger condition is clear: you have a resignation date and need the in-China transfer runway. The schema's employerWithholdingRelease branch signals a sub-case, but the description never states when NOT to use it (e.g. out-of-China hires) or names a sibling to redirect to.

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.