Skip to main content
Glama

Moedux — Brazilian Personal Finance & Salary Calculator

calcular_irpf

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. Added

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and largely meets it: it discloses the tax table year (2026), the Lei 15.270/2025 exemption up to R$ 5.000,00, and that restituição/full-model deductions are out of scope. It also describes what is returned, including a pre-filled calculator link. Minor gaps remain on rounding or treatment of edge inputs, which keeps it below a 5.

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 definition is a single dense but well-ordered block: purpose and outputs first, then when to use, then alternatives, then scope exclusions. Every sentence adds information and nothing is redundant, though the opening sentence is long enough to slow scanning slightly.

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 calculation tool with no output schema, the description covers inputs, tax rules applied, outputs (including the link), and what is deliberately excluded. An agent has everything needed to call it correctly and to explain the result.

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 description coverage is 100%, so both parameters are already documented in the schema, including the deduções default of 0 (declaração simplificada). The description mentions the legal deductions (dependentes, pensão, previdência privada) but essentially mirrors the schema rather than adding syntax or interaction detail. 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 states a specific computation chain: base de cálculo, IRRF devido, alíquota efetiva and salário líquido, derived from salário bruto plus legal deductions under the 2026 monthly progressive table. It explicitly distinguishes itself from calcular_inss and calcular_salario_liquido and clarifies it is the payroll withholding, not the annual tax return.

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 names the triggering user questions (quanto desconta de IR, qual a alíquota efetiva, quanto sobra líquido) and routes to alternatives with explicit conditions: calcular_inss for INSS-only, calcular_salario_liquido for net pay including both INSS and IRRF. It also states an exclusion (annual declaration, restituição, full-model deductions), leaving little to inference.

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.