Skip to main content
Glama
reforma-tributaria-mcp

reforma-tributaria-mcp

aliquota_referencia

Fetch reference tax rates for federal, state, or municipal levels by code for 2026; switch to nominal rates from 2027 onward when the reference rate is unavailable.

Instructions

Alíquota de referência: uniao, uf (codigo = código da UF, ex.: 43) ou municipio (codigo = código IBGE). Só há alíquotas cadastradas para 2026; de 2027 em diante a API devolve 404 e elas devem ir em aliquotasNominais.

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": {
      "nivel": "<nivel>"
    },
    "name": "aliquota_referencia"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNo
nivelYes
codigoNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one important behavior: a 404 is returned for years 2027+. It says nothing about permissions, whether a missing UF/municipality code yields an error or an empty result, or what the returned rate object contains.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences with the level/code mapping first and the 2026 constraint second; no filler, no repetition of schema structure. Every clause carries information the schema does not.

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?

No output schema and no annotations mean the description should also sketch the response (what a reference rate entry looks like) and the accepted date format; neither is present. For a simple lookup it is serviceable, but a caller cannot know what it gets back.

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 0%, so the description must compensate, and it does well for two of three parameters: `nivel`'s three enum values and the per-level semantics of `codigo` (UF code such as 43, IBGE code for municipalities). The `data` parameter is only implied via the 2026 limitation — no format or behaviour for out-of-range dates is stated.

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 names the resource (alíquota de referência) and enumerates the three levels it can be resolved at, plus the meaning of `codigo` per level. An agent can tell this is a reference-rate lookup distinct from calcular_tributos or base_calculo_unificada, though no verb ('retorna/consulta') or explicit sibling contrast is given.

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?

It gives a concrete when-not rule: only 2026 rates are registered, and from 2027 onward the correct place is `aliquotasNominais` rather than this tool. That is a real routing instruction, but it does not say when to prefer this over calcular_tributos or base_calculo_unificada for the same year.

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