Calculadora RTC Copiloto Fiscal MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| RFB_MODE | No | `auto` (tenta live e faz fallback para sandbox), `live` ou `sandbox`. | auto |
| GEMINI_API_KEY | No | Opcional — ativa chamada de ferramentas via Google Gemini. | |
| OPENAI_API_KEY | No | Opcional — ativa chamada de ferramentas via OpenAI. | |
| RFB_DANFSE_URL | No | URL do gerador oficial RFB DANFSe. | http://localhost:8081 |
| RFB_GATEWAY_URL | No | URL opcional da API Gateway Unificada (`receita-federal-calculadora-rtc-api-sdk`). | |
| RFB_REGIME_REGULAR_URL | No | URL da calculadora RFB Regime Regular. | http://localhost:8080/api/calculadora |
| RFB_SIMPLES_NACIONAL_URL | No | URL da calculadora RFB Simples Nacional. | http://localhost:8082/api |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Você é um Copiloto Fiscal Zero-Alucinação especialista na Reforma Tributária Brasileira (LC 214/2025 e NT 2026.005), conectado às calculadoras oficiais da Receita Federal. SEMPRE utilize as ferramentas determinísticas deste servidor para calcular tributos (CBS, IBS UF/Mun, IS, Simples Nacional, Fator R, Base Unificada), consultar NCM/NBS/alíquotas, explicar erros REG-/VSN-, gerar/validar XML e emitir DANFSe PDF. Nunca invente valores numéricos ou alíquotas.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| calcular_regime_geralB | Calcula CBS, IBS (UF e Municipal) e Imposto Seletivo no Regime Geral (LC 214/2025 e NT 2026.005). Aceita tanto lista completa |
| calcular_simples_nacionalA | Calcula apuração do Simples Nacional (assistido e não-assistido), Fator R, sublimite e crédito B2B. Suporta Anexos I a V, transição automática pelo Fator R (>= 28% Anexo III, < 28% Anexo V),
sublimite estadual/municipal (R$ 3,6 milhões), opção híbrida IBS/CBS por fora do DAS (LC 214/2025 art. 41)
e diagnósticos oficiais |
| comparar_regimes_tributariosB | Compara lado a lado Regime Geral (IBS/CBS/IS), Simples DAS Integral e Simples Híbrido (art. 41 LC 214/2025). Considera créditos não-cumulativos sobre insumos, Fator R, sublimite, impacto de crédito transferível a clientes B2B e indica o cenário mais econômico com memória técnica. |
| calcular_base_unificadaC | Calcula a Base de Cálculo Unificada ( Em 2026 deduz PIS/COFINS/ICMS/FCP/ISS; a partir de 2027 ignora PIS/COFINS (extintos) com avisos;
a partir de 2033 ignora também ICMS/FCP/ISS. Sempre soma |
| consultar_ncm_nbsA | Consulta enquadramento tributário LC 214/2025 (CST, cClassTrib, redução, IS e Simples) por NCM, NBS ou palavra-chave. |
| consultar_aliquotas_referenciaA | Consulta alíquotas de referência vigentes de CBS, IBS UF e IBS Municipal para qualquer ano (2026–2033) e UF/município. |
| consultar_atividades_simplesC | Consulta atividades oficiais do Simples Nacional ( |
| explicar_erro_fiscalB | Diagnostica e fornece remediação passo a passo para erros oficiais |
| gerar_validar_xml_tributarioB | Gera e/ou valida grupos XML |
| gerar_danfse_pdfA | Gera DANFSe em PDF real ( |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| auditar_operacao_fiscal | Guia estruturado para auditar uma operação fiscal (NF-e/NFC-e/NFS-e) sob a LC 214/2025 e NT 2026.005 sem alucinações. |
| planejamento_regime_tributario | Roteiro executivo para planejamento tributário comparando Regime Geral, Simples Nacional Integral e Simples Híbrido (LC 214/2025). |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Cronograma de Transição LC 214/2025 (2026–2033) | Cronograma completo de alíquotas de referência CBS/IBS, vigência do IS e extinção de PIS/COFINS/ICMS/ISS. |
| Catálogo Oficial de Erros Fiscais RFB RTC (REG-001..REG-020 e VSN-001..VSN-040) | Guia estruturado de causa raiz, campos afetados, fundamento legal e remediação de todos os 60 códigos de erro. |
| Tabela Oficial de CST e cClassTrib IBS/CBS (LC 214/2025) | Catálogo estruturado de CSTs e cClassTrib com percentuais de redução, elegibilidade e fundamento legal. |
TDQS
Scored across 10 tools
Tools pair distinct verbs with distinct resources (consultar_ncm_nbs, calcular_regime_geral, calcular_simples_nacional, comparar_regimes_tributarios, gerar_validar_xml_tributario, gerar_danfse_pdf), so an agent can select correctly. Minor overlap exists between calcular_regime_geral and calcular_base_unificada, and among the three consultar_* lookups, but descriptions clearly delineate their scopes.
All ten tools follow a consistent snake_case Portuguese verb_noun pattern (consultar_, calcular_, comparar_, explicar_, gerar_). The only compound case, gerar_validar_xml_tributario, remains readable and on-pattern.
Ten tools is well-scoped for a tax-calculation copilot: each covers a distinct operation (lookup, calculation, comparison, validation, generation) without obvious redundancy. No tool feels superfluous or missing from the count perspective.
The surface covers the fiscal lifecycle end-to-end: classification (NCM/NBS), regime calculation (Geral and Simples), unified base, comparison, reference rates, error remediation, XML validation, and DANFSe PDF output. Minor gaps remain, such as a dedicated NFS-e input-parsing/validation tool or explicit credit-transfer calculation, but these are workable via the comparison and XML tools.