calculate_rtc_official
Calculadora Oficial da Reforma Tributária do Consumo (LC 214/2025, Receita Federal Base V0073) no Edge sem servidor Java 21/Spring Boot. Resolve automaticamente reduções legais de CBS/IBS por cClassTrib, NCM, NBS, LC 116 ou setor, suporta Regime Regular, Simples Nacional (Anexos I-V + Fator R) e transição 2026-2033 ($0.005 USDC via x402 on Base).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "calculate_rtc_official"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ano | No | Calendar year for LC 214/2025 transition schedule (2026..2033, default: 2026). | |
| nbs | No | Optional 4-9 digit NBS service code for automatic official RFB cClassTrib lookup | |
| ncm | No | Optional 4-8 digit NCM code for automatic official RFB cClassTrib & reduction lookup | |
| xml | No | Raw NFS-e XML (National standard or ABRASF) | |
| itens | No | Optional batch list of items/services to compute official RTC reductions and totals in a single call (max 50). | |
| rbt12 | No | Last 12-month gross revenue in BRL for Simples Nacional effective DAS rate (default: 360000). | |
| setor | No | Semantic sector alias when cClassTrib is unknown (e.g. 'construcao_civil', 'saude', 'educacao', 'cesta_basica', 'profissao_intelectual', 'locacao_imoveis', 'bares_restaurantes', 'combustiveis', 'padrao'). | |
| fatorR | No | Payroll/revenue ratio (0..1) for Simples Nacional Annex III vs V (threshold 0.28). Alias: fator_r. | |
| regime | No | Tax regime (default: 'regime_regular'). Supports Simples Nacional DAS simulation and transferable B2B credit. | |
| aliqCbs | No | Optional manual override for nominal CBS rate (%). Alias: cbsAliquota, aliq_cbs. | |
| aliqIbs | No | Optional manual override for nominal IBS total rate (%). Alias: ibsAliquota, aliq_ibs. | |
| servico | No | Service values, cTribNac, cClassTrib, nbs, ISS and optional manual CBS/IBS rates | |
| tomador | No | Service taker identification (cnpjCpf, razaoSocial, municipio, uf) | |
| aliqIbsUf | No | Optional manual override for nominal State IBS rate (%). | |
| prestador | No | Service provider identification (cnpjCpf, razaoSocial, municipio, uf, simplesNacional) | |
| aliqIbsMun | No | Optional manual override for nominal Municipal IBS rate (%). | |
| cClassTrib | No | Official 6-digit Receita Federal cClassTrib code (Base V0073, e.g. '200046' construction 50% reduction, '200029' health 60%, '200028' education 60%, '200003' basic food basket 100%, '200052' regulated professions 30%, '000001' standard). Alias: c_class_trib. | |
| anexoSimples | No | Simples Nacional Annex (I-V) when regime='simples_nacional' (alias: anexo_simples). | |
| generateHtml | No | Include printable DANFSe HTML in response (default: true on /generate, false on /calculate). | |
| valorServico | No | Service or item amount in BRL (alias: valor_servico, baseCalculo) | |
| discriminacao | No | Service or operation description | |
| atividadeSimples | No | Official RFB Simples Nacional activity code ('01'..'14', '90'). |