Skip to main content
Glama

Moedux — Finanças Brasileiras

calcular_irpf

Read-onlyIdempotent

Imposto de Renda na folha: a base de cálculo, o IRRF devido, a alíquota efetiva e o salário líquido a partir do salário bruto e das deduções legais (dependentes, pensão, previdência privada), com a tabela progressiva mensal de 2026 e a redução da Lei 15.270/2025 que zera o imposto até R$ 5.000,00 de rendimento. Use quando o usuário perguntar quanto desconta de Imposto de Renda, qual a alíquota efetiva ou quanto sobra líquido depois de INSS e IR. Para só o desconto de INSS use calcular_inss; para o líquido com INSS e IRRF use calcular_salario_liquido. É o desconto na folha, não a declaração anual: restituição e deduções do modelo completo não estão consideradas. Devolve o imposto, a alíquota efetiva, o líquido e o link da calculadora com os números preenchidos.

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": {
      "salario_bruto": "<salario_bruto>"
    },
    "name": "calcular_irpf"
  }
}

Input Schema

NameRequiredDescriptionDefault
deducoesNoDeduções legais mensais em reais (dependentes, pensão, previdência privada). Padrão: 0 (declaração simplificada)
salario_brutoYesSalário mensal bruto em reais, antes dos descontos

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare the safe-read profile (readOnly, idempotent, closed-world), which is the easy part; the description adds the substantive behavior — what is returned (imposto, alíquota efetiva, líquido, and a prefilled calculator link) and what is out of scope (restituição, deduções do modelo completo). No contradiction with the annotations.

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?

The calculation scope is front-loaded, then when-to-use, then sibling routing, then the annual-return exclusion, then return values — a logical order with no filler. It runs long and the closing return-value sentence slightly overlaps the opening enumeration, which keeps it off a 5.

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?

For a two-parameter pure calculator with full schema coverage and safe-read annotations, everything an agent needs is present: inputs, outputs, legal-version caveat, sibling disambiguation and scope limits.

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 both parameters are already documented with types, minimums and defaults. The description's parenthetical 'dependentes, pensão, previdência privada' echoes the schema's own deduções description rather than adding new meaning, so the baseline 3 applies.

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?

The description names the concrete outputs (base de cálculo, IRRF, alíquota efetiva, salário líquido) and the inputs that drive them (salário bruto, deduções legais), plus the legal basis (tabela progressiva mensal 2026, Lei 15.270/2025). It is clearly distinguishable from calcular_inss and calcular_salario_liquido, which it names explicitly.

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

Usage Guidelines5/5

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

It states the exact user intents that should trigger it ('quanto desconta de Imposto de Renda', 'qual a alíquota efetiva', 'quanto sobra líquido') and routes two adjacent cases to siblings (calcular_inss for INSS only, calcular_salario_liquido for net with INSS+IRRF). It also adds a clear exclusion: this is payroll withholding, not the annual return.

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.