Skip to main content
Glama

Severance Pay by Weeks of Service

severance_weeks
Read-onlyIdempotent

Work out severance pay from a formula you send: weeks of pay per year of service, an optional minimum number of weeks and an optional cap in weeks. Send the years of service, the weeks per year, the weekly pay and, if the plan has them, the minimum and the cap. Choose whether a part year counts in proportion or only completed years count. Get back the weeks of severance, which limit (minimum or cap) was applied if any, the amount, and the arithmetic written out step by step. Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO's key (check it at https://llpro.ai/severance-weeks). Labels are your own text: emails, web addresses and long digit runs are refused. Not legal, tax or financial advice.

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": {
      "years_of_service": "<years_of_service>",
      "weeks_per_year": "<weeks_per_year>",
      "weekly_pay": "<weekly_pay>"
    },
    "name": "severance_weeks"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoOptional label for the calculation (your own text, echoed back; not a person's name).
cap_weeksNoOptional: the most weeks the plan pays.
weekly_payYesPay for one week, in the currency you use (the plan's definition of a week's pay: you work it out and send it).
minimum_weeksNoOptional: the fewest weeks the plan pays, whatever the service.
partial_yearsNoprorate (default): a part year counts in proportion. completed_years_only: only whole completed years count (6.99 counts as 6).prorate
weeks_per_yearYesWeeks of pay for each year of service under the plan or agreement (2 = two weeks per year).
years_of_serviceYesYears of service, up to 2 decimals (6.5 = six and a half years).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent and closed-world, and the description goes well beyond them: no model, no network, nothing stored, every answer cryptographically signed with a verification URL, and explicit error shapes (ok false with bad input / too large / hourly limit). It also discloses the label sanitization rule — emails, URLs and long digit runs refused — which is a real constraint a caller needs.

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?

Front-loaded with the computation and its inputs, then error behavior, then trust signals — a sensible order with little wasted framing. The raw enumeration of answer field names (ok, verdict, result, rule, does_not, sources...) is compact but opaque, and the closing trust/legal sentences make the tail slightly heavier than needed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 takes on the burden of describing returns and does so: it names the values returned (weeks of severance, which limit was applied, amount, step-by-step arithmetic) and lists the answer envelope fields. Error modes, privacy posture and signature verification are all covered, so an agent has what it needs to call and interpret results.

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 coverage is 100%, so the per-field definitions already carry the meaning of years_of_service, weeks_per_year, minimum_weeks and cap_weeks, making 3 the baseline. The description adds one meaningful rule not in the schema: the character policy for the label field. It otherwise restates the schema rather than extending it.

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?

Opening sentence states a specific verb and resource — 'Work out severance pay from a formula you send' — and immediately names the inputs of that formula. An agent can tell this is a deterministic severance calculator, distinct from the calendar/interest/routing tools among the siblings.

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 tells the caller exactly what to send and when optional plan features apply ('if the plan has them, the minimum and the cap'), and frames the one real modeling choice — prorated part years vs completed years only. It does not name an alternative tool or state when not to use this one, which keeps it at 4 rather than 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.

Resources