Skip to main content
Glama
Calculadora RTC Copiloto Fiscal MCP

Calculadora RTC Copiloto Fiscal MCP

gerar_validar_xml_tributario

Generate and validate and XML tax groups per NT 2026.005, with line-and-column error reporting to pinpoint compliance issues.

Instructions

Gera e/ou valida grupos XML <IBSCBS> e <IS> conforme NT 2026.005 via lxml, reportando linha e coluna de erros.

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": "gerar_validar_xml_tributario"
  }
}

Input Schema

NameRequiredDescriptionDefault
ufNoSP
anoNo
cstNo000
acaoNogerar_e_validar
p_isNo
tipoNonfe
v_bcNo
p_cbsNo
subtipoNogrupo
v_bc_isNo
p_ibs_ufNo
p_ibs_munNo
cclasstribNo000001
xml_conteudoNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/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; it does disclose two useful traits: validation errors are reported with line and column, and processing goes through `lxml`. It does not state whether generation writes files or only returns content, what happens to partial/invalid input, or any permission/environment requirements for a 14-parameter mutation-style tool.

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?

A single front-loaded sentence that packs verb, resource, standard, library and error-reporting behavior with no filler. Nothing is repeated from the name or schema.

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?

An output schema exists, so return values need no explanation, but a 14-parameter tool with zero required fields and zero schema descriptions needs the description to explain at least the core inputs (uf, ano, tipo, subtipo, xml_conteudo vs. generated content) and the generate-vs-validate distinction. That guidance is entirely absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 14 parameters — only bare titles like `P Is`, `V Bc`, `Cclasstrib` and `Subtipo`. The description explains none of them; the only indirect help is the mention of the `<IBSCBS>`/`<IS>` groups, which vaguely maps to the IBS/CBS rate parameters. For a tool with this many undocumented fields, the description fails to compensate.

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?

States specific verbs (gera/valida), the exact XML resources involved (`<IBSCBS>` and `<IS>`), the governing standard (NT 2026.005) and the implementation library (lxml). An agent can distinguish this from the sibling calculation tools (`calcular_base_unificada`, `calcular_regime_geral`) and from `gerar_danfse_pdf`, though it never explicitly names a sibling to route against.

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

Usage Guidelines3/5

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

Usage is only implied by the verb pair 'Gera e/ou valida' — the agent must infer that generation, validation, or both are modes, and only the schema's `acao` enum clarifies that. There is no statement of when to choose this over the `calcular_*` or `gerar_danfse_pdf` siblings, and no prerequisites or exclusions are given.

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