Skip to main content
Glama

Em miúdos: ITCMD e custas (Brasil)

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

calcular_itcmd
Read-onlyIdempotent

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. Onde a lei estadual aplica a alíquota da faixa sobre o total (hoje BA, MA, RJ e RS), "ressalva_lc227" traz a outra leitura, da LC 227/2026 art. 156 § 2º (alíquota por parcela), com o valor em imposto_por_parcela_centavos, sem mudar o imposto: cite as duas. 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. Changed3 schema fields changed
    • addedInput schema / properties / tipo / default
      Added value: +"causa_mortis"
    • changedInput schema / properties / tipo / description
      Previous value: -"causa_mortis = herança; doacao = doação em vida."New value: +"causa_mortis = herança; doacao = doação em vida. Opcional: sem ele calcula herança e a resposta diz isso em \"assumido\"."
    • changedInput schema / required
      Previous value: -[
      -  "uf",
      -  "tipo",
      -  "valor"
      -]New value: +[
      +  "uf",
      +  "valor"
      +]
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

With readOnly/openWorld/idempotent annotations already covering the safety profile, the description still adds substantial behavior detail beyond them: the exact output fields (imposto, parcelas por faixa, alíquota efetiva, fonte, limites, pagina_para_pessoas), the fact that returned tax is always undiscounted with discounts surfaced separately in 'descontos_condicionais', and the dual-reading caveat for BA/MA/RJ/RS via 'ressalva_lc227'. It also states the failure mode precisely: out-of-coverage returns 'cobre': false with a reason and no number.

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 purpose and trigger are front-loaded in the first sentence, and later sentences carry real content: return fields, discount handling, the LC 227 caveat, and the out-of-coverage rule. It is dense and citation-heavy (Decreto 43.981/2005 art. 23, LC 227/2026 art. 156 § 2º), and some legal detail reads more like output documentation than selection guidance, but little of it is truly wasted given there is no output schema.

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?

There is no output schema, so the description must carry the return contract itself, and it does — naming each response field, the conditional-discount sub-object, the alternative-reading object, and the 'cobre': false path with its instruction not to estimate. For a tax tool with jurisdictional branching and conditional rules, an agent has enough to call it and to interpret the response without guessing.

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% with two enums, so the schema already documents uf, tipo and valor thoroughly, and a baseline of 3 applies. The description adds only a little meaning — that the base de cálculo is whatever the caller supplies and is not the tool's own valuation of the assets — without elaborating on the unidade/format of valor beyond what the schema already says.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: it calculates ITCMD (the state inheritance/gift tax) for a Brazilian state from a base value in reais, and it names the two situations covered (herança and doação). It is clear what the tool computes, but it never distinguishes itself from the sibling 'aliquotas_itcmd', which likely also surfaces faixa/alíquota data, so an agent cannot fully separate the two from the description alone.

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?

"Use quando precisar do valor do imposto de uma herança ou de uma doação" gives a clear trigger, and the closing rule for uncovered states ("devolve cobre: false... nesse caso não estime") sets an explicit boundary on use. It also enumerates what the tool does not handle (multa, juros, isenções condicionais, avaliação dos bens), which is strong when-not guidance. It stops short of naming an alternative tool such as 'cobertura' for coverage checks.

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.