get_termination_rules
Retrieve country-specific termination rules: notice periods, severance, just-cause, and pitfalls to ensure EOR compliance.
Instructions
Country-specific termination rules including notice period, severance calculation, just-cause requirements, and procedural pitfalls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | Yes |
Implementation Reference
- src/main.ts:701-704 (registration)Tool registration in ListToolsRequestSchema handler — defines name, description, and inputSchema for get_termination_rules.
name: "get_termination_rules", description: "Country-specific termination rules including notice period, severance calculation, just-cause requirements, and procedural pitfalls.", inputSchema: { type: "object", properties: { country: { type: "string", enum: Object.keys(COUNTRY_BRIEFS) } }, required: ["country"] } }, - src/main.ts:754-772 (handler)Handler for get_termination_rules — extracts country from args, looks up COUNTRY_BRIEFS, and returns a structured JSON response with termination-related fields (legal_framework, employee_protections, filtered common_pitfalls, and complexity-based guidance).
case "get_termination_rules": { const country = args?.country as string; const brief = COUNTRY_BRIEFS[country]; if (!brief) throw new Error(`Unknown country: ${country}`); return { content: [{ type: "text", text: JSON.stringify({ module: "Termination Rules", country: brief.market, legal_framework: brief.legal_framework, employee_protections: brief.notable_employee_protections, common_pitfalls: brief.common_pitfalls.filter(p => /termination|dismissal|fire|sever|notice|protection/i.test(p)), general_guidance: brief.payroll_complexity === "Very High" || brief.payroll_complexity === "High" ? "High-complexity termination market — formal process required, severance significant, courts often pro-employee. Use EOR for hands-off compliance." : "Lower-complexity termination market — process is more streamlined but still respect notice periods." }, null, 2) }] }; }