Skip to main content
Glama

FalaZuki Finance BR

calculate_severance

Calcula rescisão trabalhista CLT: demissão sem justa causa, pedido de demissão, acordo, dispensa por justa causa ou término de contrato por prazo determinado ou de experiência na data combinada (a saída antes do prazo não é coberta). Inclui saldo de salário, férias, 13º, aviso prévio e multa FGTS, com INSS e IRRF sobre as verbas tributáveis. Aceita competência histórica (reference_date), avos do 13º e das férias como impressos no TRCT, e aviso trabalhado. Parâmetros obrigatórios: salary, months_worked, type. Opcionais: days_worked_in_month, fgts_balance, dependents, reference_date, thirteenth_twelfths, vacation_twelfths, notice_worked. Use exatamente estes nomes, em inglês.

Input Schema

NameRequiredDescriptionDefault
typeYesTipo de rescisão. with_cause é a dispensa por justa causa (CLT, art. 482); fixed_term_end é o término do contrato por prazo determinado ou de experiência na data combinada
salaryYesSalário bruto mensal em R$
dependentsNoDependentes para dedução do IRRF
fgts_balanceNoSaldo do FGTS acumulado em R$
months_workedYesMeses trabalhados na empresa. Define os dias de aviso prévio; para 13º e férias proporcionais os avos são limitados a 12.
notice_workedNoAviso prévio trabalhado: não há aviso indenizado a receber no TRCT
reference_dateNoCompetência da rescisão, aaaa-mm-dd. Sem ela, as tabelas vigentes hoje
vacation_twelfthsNoAvos das férias proporcionais como impressos no TRCT (meses no período aquisitivo). Sem ele, derivado dos meses de casa com teto 12
thirteenth_twelfthsNoAvos do 13º proporcional como impressos no TRCT (meses no ano civil). Sem ele, derivado dos meses de casa com teto 12
days_worked_in_monthNoDias trabalhados no mês da rescisão

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / type / description
      Previous value: -"Tipo de rescisão"New value: +"Tipo de rescisão. with_cause é a dispensa por justa causa (CLT, art. 482); fixed_term_end é o término do contrato por prazo determinado ou de experiência na data combinada"
    • changedInput schema / properties / type / enum
      Previous value: -[
      -  "without_cause",
      -  "resignation",
      -  "mutual_agreement"
      -]New value: +[
      +  "without_cause",
      +  "resignation",
      +  "mutual_agreement",
      +  "with_cause",
      +  "fixed_term_end"
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries real behavioral weight: it discloses that INSS and IRRF are applied on taxable verbas, that historical competência tables are honored via reference_date, that avos are capped at 12, and that aviso trabalhado suppresses the indenizado amount. It does not state the return shape or that the tool is a side-effect-free pure calculation, which is the remaining transparency gap.

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?

Three dense but purposeful sentences, front-loaded with what is computed before moving to parameter mechanics. Nothing is repetitive, though the inclusion list and parameter inventory pack a lot into one block and the naming directive sits mid-paragraph rather than in a distinct slot.

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?

For a 10-parameter domain tool with no output schema, the description thoroughly covers inputs and domain scope but never describes the return value's shape or fields, so an agent cannot fully anticipate the response. The input side is complete; the output side is left implicit.

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 already 100%, so baseline is 3, but the description adds value beyond the schema: it groups required (salary, months_worked, type) vs optional parameters and explicitly instructs the agent to use the English parameter names verbatim, which prevents Portuguese-name errors. It adds orientation without duplicating meaning the schema lacks.

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 specific verb and resource (calculate CLT severance) and enumerates the five covered termination types plus the exact monetary components it produces (saldo de salário, férias, 13º, aviso prévio, multa FGTS, INSS/IRRF). This scope listing is enough for an agent to separate it from siblings like calculate_custo_demissao or calculate_aviso_previo without opening any schema.

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?

Gives clear applicability (without_cause, resignation, mutual agreement, with_cause, fixed-term/experience end) and an explicit exclusion ('a saída antes do prazo não é coberta'). It never names an alternative tool to use in the excluded case, so no alternative routing is provided — clear context but no alternatives.

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