Skip to main content
Glama
DeHor-Labs

mcp-fiscal-brasil

by DeHor-Labs

validar_cst

Validates Brazilian CST and CSOSN tax codes for NF-e and SPED compliance, checking against the user's tax regime offline without requiring internet connection.

Instructions

Valida um Código de Situação Tributária (CST) ou Código de Situação da Operação no Simples Nacional (CSOSN). Purpose: confirmar se o código informado é válido para o regime tributário antes de emitir NF-e ou escriturar no SPED. Quando usar: ao preencher o campo CST/CSOSN na NF-e ou no SPED EFD. Comportamento offline: valida contra tabelas em memória (ICMS, PIS/COFINS, IPI, CSOSN); não requer conexão. Parâmetro 'regime': use 'normal' para Lucro Real/Presumido/Arbitrado ou 'simples' para Simples Nacional. Parâmetro 'cst': 3 dígitos para CST ICMS (ex: '000', '040'), 2 dígitos para CST PIS/COFINS/IPI (ex: '01', '50'), 3 dígitos para CSOSN (ex: '101', '400').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cstYesCodigo a validar. Exemplos: "000" (CST ICMS), "50" (CST PIS/COFINS), "101" (CSOSN Simples Nacional).
regimeYesRegime tributario: "normal" (Lucro Real, Presumido ou Arbitrado) ou "simples" (Simples Nacional).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description carries full transparency burden. It discloses offline behavior ('valida contra tabelas em memória; não requer conexão') and parameter details, but doesn't mention potential return format or error handling.

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, front-loading purpose and usage. It is slightly verbose but each sentence adds value, covering offline behavior, parameter instructions, and digit validation rules.

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

Completeness5/5

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

Given the tool's simplicity (2 params, offline validation), the description is fully complete. It covers when to use, parameter guidelines, offline behavior, and the output schema existence covers return values.

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

Parameters5/5

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

Schema coverage is 100%, and the description adds significant value beyond the schema by explaining digit lengths ('3 dígitos para CST ICMS', '2 dígitos para CST PIS/COFINS/IPI', '3 dígitos para CSOSN') and providing examples ('ex: "000", "040"').

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 validates CST/CSOSN codes, with specific examples and context (NF-e, SPED). It distinguishes well from sibling tools, as no other sibling appears to focus on CST/CSOSN validation.

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

Usage Guidelines4/5

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

The description explicitly states when to use: 'ao preencher o campo CST/CSOSN na NF-e ou no SPED EFD'. It lacks explicit when-not-to-use or alternatives, but the specific context makes the usage clear.

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

Install Server

Other Tools

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/DeHor-Labs/mcp-fiscal-brasil'

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