Skip to main content
Glama

Calcular o ITCMD de herança ou doação

calcular_itcmd
Read-onlyIdempotent

Calculate Brazilian state inheritance and gift tax (ITCMD) in reais, with brackets per range, effective rate, cited legal source, and coverage limits for the given state.

Instructions

Calcula o ITCMD (imposto estadual sobre herança e doação) de um estado brasileiro para uma base de cálculo em reais. Use quando precisar do valor do imposto de uma herança ou de uma doação. Devolve o imposto em reais e em centavos, as parcelas por faixa e a alíquota efetiva. Não cobre multa, juros, isenções que dependem de condição nem a avaliação dos bens: a base de cálculo é a que você informar. O imposto devolvido é sem desconto; onde o regulamento dá desconto condicional (hoje MG: 15% no ITCD de herança pago em 90 dias da abertura da sucessão, com a Declaração de Bens no mesmo prazo, Decreto 43.981/2005 art. 23), ele vem à parte em "descontos_condicionais", com as condições, a fonte e o valor com desconto em imposto_com_desconto_centavos. Traz "pagina_para_pessoas": a calculadora do estado no navegador, com a mesma fonte, para indicar a quem fez a pergunta. A resposta traz "fonte" (lei, artigo, link oficial, data de conferência) e "limites" (o que o cálculo não cobre): cite os dois. Fora da cobertura devolve "cobre": false com o motivo e sem número; nesse caso não estime.

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": {
      "uf": "<uf>",
      "valor": "<valor>"
    },
    "name": "calcular_itcmd"
  }
}

Input Schema

NameRequiredDescriptionDefault
ufYesSigla do estado. Com dado conferido hoje: BA, CE, DF, ES, GO, MA, MG, MS, MT, PA, PB, PE, PR, RJ, RN, RS, SC, SP. Os demais devolvem "cobre": false.
tipoNocausa_mortis = herança; doacao = doação em vida. Opcional: sem ele calcula herança e a resposta diz isso em "assumido".causa_mortis
valorYesBase de cálculo: valor da herança (quinhão ou monte, conforme a lei do estado) ou da doação. Em reais, com ponto decimal (500000 ou 1234.56).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare a safe, idempotent read, and the description still adds substantial behavior: returned fields (imposto in reais and centavos, parcelas por faixa, alíquota efetiva), the separated 'descontos_condicionais' for MG with legal source and 'imposto_com_desconto_centavos', plus 'pagina_para_pessoas'. It also discloses the out-of-coverage failure mode ('cobre': false, no number) and instructs the agent to cite 'fonte' and 'limites', which is exactly the kind of context annotations cannot carry.

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?

One dense but well front-loaded block: purpose first, then return shape, then exclusions. The MG discount digression (percentage, 90-day window, Decreto 43.981/2005 art. 23) is granular, but it maps directly to an output field the agent must relay, so it largely earns its place; tighter sentence splitting would help readability.

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?

No output schema exists, and the description compensates by enumerating the returned fields, the conditional-discount structure, and the uncovered-state response shape. Between the description and the fully documented schema, 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.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with enums for uf and tipo, so the parameters are already well documented. The description still adds meaning: it clarifies that 'valor' is a base the caller supplies rather than an assessed asset value, and that out-of-coverage UF values yield no number and should not be estimated, reinforcing the enum semantics.

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: calculates ITCMD, the state tax on inheritance and donations, for a Brazilian state from a base value in reais. The scope boundaries ('Não cobre multa, juros, isenções... a base de cálculo é a que você informar') separate it cleanly from the rates table and cost-calculation siblings without ambiguity.

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 a clear trigger ('Use quando precisar do valor do imposto de uma herança ou de uma doação') and an explicit exclusion rule for uncovered states ('devolve "cobre": false... nesse caso não estime'). It stops short of naming sibling tools like aliquotas_itcmd or cobertura as the alternative when the agent only needs a rate or coverage check, so the routing is implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.