Skip to main content
Glama

SalaryNet Payroll

calculate_severance

Cost of terminating an employee in Brazil, Mexico, the Philippines, the UAE, Spain, Türkiye or Chile: statutory severance, notice, proportional 13th month/aguinaldo, vacation and FGTS items, with the legal rule per line. Dates are YYYY-MM-DD; reason depends on country (ph: redundancy, retrenchment, closure, disease, just_cause, resignation, mutual; br: dismissal, mutual, resignation, just_cause; mx: dismissal, resignation, mutual; ae: termination, resignation, mutual; es: improcedente, objetivo, temporal, resignation; tr: dismissal, resignation; cl: necesidades_empresa, mutuo_acuerdo, renuncia).

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": {
      "country": "<country>",
      "monthly_gross": "<monthly_gross>",
      "start_date": "<start_date>",
      "end_date": "<end_date>",
      "reason": "<reason>"
    },
    "name": "calculate_severance"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYes
countryYes
optionsNo
end_dateYes
start_dateYes
monthly_grossYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / country / enum
      Previous value: -[
      -  "ph",
      -  "br",
      -  "mx",
      -  "ae",
      -  "es"
      -]New value: +[
      +  "ph",
      +  "br",
      +  "mx",
      +  "ae",
      +  "es",
      +  "tr",
      +  "cl"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / country / enum
      Previous value: -[
      -  "ph",
      -  "br",
      -  "mx"
      -]New value: +[
      +  "ph",
      +  "br",
      +  "mx",
      +  "ae",
      +  "es"
      +]
  3. Added

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral load. It does disclose useful output behavior ('with the legal rule per line') and the required date format, but never states that this is a side-effect-free calculation, whether results are indicative vs. legally binding, or anything about currency/precision assumptions.

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?

Purpose and the country list are front-loaded, and the long per-country reason enumeration is justified because the schema does not encode those enums. It is one dense run-on sentence, though, and the parenthetical list is hard to parse quickly.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Since there is no output schema, the description valuably enumerates the returned line items, and it covers the highest-risk parameter (reason). However, for a 6-parameter tool with a nested free-form 'options' object and no annotations, the silence on options, currency, and result interpretation leaves meaningful gaps.

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?

With 0% schema coverage, the description is the only source of valid reason values per country — a substantive addition the bare 'string' schema would otherwise leave unusable, and it also pins the YYYY-MM-DD date format. It leaves the nested 'options' object entirely opaque and says nothing about the currency/meaning of monthly_gross.

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?

States a concrete verb and resource ('Cost of terminating an employee') scoped to seven named countries, then enumerates exactly what the figure comprises (statutory severance, notice, proportional 13th month/aguinaldo, vacation, FGTS). That level of specificity clearly separates it from calculate_net_pay and calculate_employer_cost.

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?

The country-to-reason mapping implicitly tells the agent which reason values are valid where, which is real usage guidance. But there is no explicit when-to-use/when-not guidance and no reference to the sibling tools that an agent might confuse it with (e.g., employer cost vs. termination cost).

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