Skip to main content
Glama

calculate es labor exit

calculate_es_labor_exit
Read-onlyIdempotent

Spain severance: despido improcedente 33 days' salary per year (max 24 months) or objetivo 20 days per year (max 12 months) (Estatuto de los Trabajadores art. 53, 56), daily salary as annual / 365, unemployment benefit duration from days contributed (LGSS art. 269), SMI check (1,221 EUR a month in 14 payments, 40.70 a day, 2026), and the 20 business-day deadline to challenge the dismissal (Saturdays and Sundays skipped only). Service before 2012-02-12 uses a transition rule that is not computed. Spain (BOE), 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>",
      "annualSalary": "<annualSalary>",
      "type": "<type>"
    },
    "name": "calculate_es_labor_exit"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYesDismissal date
typeYesUnfair dismissal or objective dismissal
startYesEmployment start date
notifiedNoDate the dismissal was notified
annualSalaryYesGross annual salary including extra payments (EUR)
monthlySalaryNoMonthly salary for the SMI check (EUR, 14 payments)
contributedDaysNoDays contributed to unemployment in the last 6 years

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare a read-only, idempotent, closed-world, non-destructive operation, and the description goes further by disclosing the legal basis, the 2026 data vintage, the pre-2012 transition rule that is deliberately not computed, and that unverifiable values are flagged rather than computed. That is real behavioral context beyond the structured fields, though it omits any statement about the shape or units of the returned estimate.

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?

Information density is high and little is wasted, but the whole definition is a single run-on sentence built from stacked parentheticals, which makes the key scope caveats easy to miss. Splitting the formula summary from the limitations and disclaimer would materially improve scannability.

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 no output schema, the description must carry the burden itself, and it covers jurisdiction, legal citations, calculation basis, data as-of date, and explicit non-computed edge cases. The remaining gap is the return value: nothing indicates what the result contains (severance amount, benefit duration, deadline) beyond the vague note that unverified values are flagged.

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 coverage is 100%, so the schema already defines all seven fields and the baseline is 3. The description adds some interpretive value by explaining that daily salary is annual/365 and that contributed days drive unemployment-benefit duration, but it never maps semantics to specific parameters like notified, monthlySalary or end, so the added meaning is modest.

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 opening 'Spain severance' plus the named formulas (despido improcedente 33 days/year, objetivo 20 days/year) gives a specific verb-and-resource identity that separates it from the other country labor-exit tools. It never explicitly contrasts itself with the sibling Spain tools such as calculate_es_appeal_deadlines, so the differentiation is implicit rather than stated.

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

Usage Guidelines3/5

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

Usage is implied by the scope notes rather than spelled out: 'Service before 2012-02-12 uses a transition rule that is not computed' tells the agent when results are incomplete, and the closing disclaimer bounds use to estimates. There is no explicit statement of when to pick this tool over calculate_es_appeal_deadlines or the other-country exit calculators, nor any prerequisite guidance.

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.