Skip to main content
Glama

Calcular Fator R (Simples Nacional)

calculate_fator_r
Read-onlyIdempotent

Calcula o Fator R do Simples Nacional (Art. 18, § 5º-J da LC 123/2006) com inteligência tributária avançada. Suporta validação automática de CNAE, proporcionalização de receitas/folha para empresas com menos de 12 meses de atividade, e projeções de cenários futuros de crescimento.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cnaeNoCódigo CNAE principal da empresa (opcional, ex: "6201-5/01" para desenvolvimento de software)
rbt12YesReceita Bruta Total acumulada nos últimos 12 meses em R$ (ex: 360000)
folha12YesFolha de pagamento acumulada nos últimos 12 meses em R$ (inclui pró-labore dos sócios e salários + INSS)
faturamento_mesNoFaturamento em R$ do mês atual a ser tributado (opcional)
meses_atividadeNoQuantidade de meses de atividade da empresa se tiver menos de 12 meses (opcional, ex: 6 para proporcionalizar RBT12/Folha12)
projecao_crescimento_pctNoPercentual estimado de crescimento do faturamento mensal nos próximos meses (opcional, ex: 20 para 20%)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYes

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds behavioral traits beyond annotations, such as automatic CNAE validation, proportionalization for companies with less than 12 months, and projection of future growth scenarios. These are useful context that annotations lack.

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 consists of two sentences. The first sentence states the purpose and legal reference, while the second lists key features. It is concise and front-loaded, but the features list could be more integrated. Overall, it earns its place without unnecessary verbosity.

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

Completeness4/5

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

Given the tool's complexity (6 parameters, 2 required, 100% schema coverage, and an output schema exists), the description covers the main aspects: purpose, legal basis, and advanced features. It does not explain return values, but the output schema presumably handles that. No major gaps for a calculator tool.

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?

Schema description coverage is 100%, with each parameter clearly described (e.g., rbt12: 'Receita Bruta Total acumulada nos últimos 12 meses em R$'). The description does not add significant detail beyond the schema, only mentioning the tool's 'advanced tax intelligence' and listing features. No contradiction or missing semantics noted.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool calculates the Fator R for Simples Nacional with a specific legal reference (Art. 18, § 5º-J da LC 123/2006) and mentions advanced features. It distinguishes itself from sibling tools like fetch_oracle_data, query_export_rules, and simulate_simples_nacional by focusing on calculation rather than data retrieval or simulation.

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?

The description provides no explicit guidance on when to use this tool versus alternatives. It lists features but does not specify prerequisites, when it is appropriate, or when not to use it. Sibling tools are not compared or excluded.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: Fator R calculation, generic data retrieval, export rules, and Simples Nacional simulation. Despite slight topical overlap between calculate_fator_r and simulate_simples_nacional, their descriptions differentiate them effectively.

Naming Consistency4/5

All tool names follow a verb_noun pattern with snake_case, but there is a mix of Portuguese and English (e.g., 'fator_r' vs 'oracle_data'). This is mostly consistent but not perfectly uniform.

Tool Count4/5

With 4 tools, the server is slightly lean but still well-scoped for a specialized tax domain. Each tool covers a core aspect, and the count is appropriate for the server's purpose.

Completeness4/5

The tools cover key tax operations for Brazilian tech companies: Fator R, Simples Nacional simulation, and export rules. The generic fetch_oracle_data tool fills minor gaps, though some specific tax calculations are missing.

Resources