Skip to main content
Glama

rtc_calcular_tributos

Calculate CBS, IBS, and Selective Tax per item for Brazilian operations. Get tax values, rates, and the RFB's legal calculation memory.

Instructions

Calcula CBS, IBS e Imposto Seletivo de uma operação, item a item.

itens: lista de itens. Cada item aceita: numero (int, obrigatório), cst (str, obrigatório), cClassTrib (str, obrigatório), baseCalculo (float), ncm (str), nbs (str), quantidade (float), unidade (str), impostoSeletivo (dict), tributacaoRegular (dict). municipio: código IBGE do município (ex.: 3550308 = São Paulo). data_hora_fato_gerador: ISO-8601 com fuso (ex.: 2026-09-04T10:00:00-03:00).

A resposta traz, por tributo, valor, alíquota e a memoriaCalculo da própria RFB com o enquadramento legal aplicado.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ufNo
itensYes
municipioYes
versao_rocNo1.0.0
identificadorNomcp-calculadora-rtc
compra_governamentalNo
data_hora_fato_geradorNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

B3.1/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 behavioral burden. It clarifies the read-style computational nature and describes the response shape per tax (valor, alíquota, memoriaCalculo, legal framework). However, it does not disclose potential errors, external dependencies, rate limits, or side effects beyond the implied calculation.

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 description is well structured and front-loaded with the main purpose, followed by a useful parameter list. It is appropriately sized for a tool whose schema provides no descriptions, and it avoids fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter tool with no output schema and no annotations, the description covers the required inputs and return shape, but it does not explain all optional parameters or how to choose this tool over related calculators. This leaves meaningful gaps for an agent deciding how to invoke it correctly in varied scenarios.

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?

The schema has 0% description coverage, so the description must compensate. It documents the core parameters itens, municipio, and data_hora_fato_gerador with types and examples, but omits uf, versao_roc, identifcador, and compra_governamental, leaving part of the parameter surface undocumented.

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 states a specific action and resource: it calculates CBS, IBS, and Imposto Seletivo for an operation, item by item. This distinguishes it from validation/status siblings, though it does not explicitly contrast it with rtc_calcular_com_trilha.

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

Usage Guidelines2/5

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

No guidance is given about when to use this tool versus the many siblings, and no alternatives or exclusion criteria are mentioned. The description gives invocation details, but an agent must infer when this is the right calculator among the sibling set.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Izaiaspertrelly/mcp-calculadora-rtc'

If you have feedback or need assistance with the MCP directory API, please join our Discord server