Skip to main content
Glama
Mouraovicente

br-docs-mcp

validate_cnpj

Validate a Brazilian CNPJ (formatted or raw digits) and receive a validity result with a reason if invalid.

Instructions

Valida um CNPJ brasileiro (aceita formatado "11.222.333/0001-81" ou cru). Retorna { valid } e, quando inválido, { reason }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cnpjYesCNPJ formatado ou apenas dígitos
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses the return object with `valid` and `reason` for invalid cases, and the accepted input formats. It does not detail edge-case behavior, but for a pure validation function this is adequate.

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?

Two short sentences, front-loaded with the verb and resource. No unnecessary detail.

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?

The tool is simple with one parameter and no output schema. The description adequately explains its purpose, input format, and return value, making it complete for an agent to select and invoke correctly.

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?

The input schema already covers the `cnpj` parameter with a description of 'formatado ou apenas dígitos'. The description adds a concrete example ('11.222.333/0001-81') which reinforces the accepted format, but does not add substantial new semantics beyond the schema.

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 a Brazilian CNPJ, specifying accepted input formats (formatted or raw digits) and the return structure. This distinguishes it from sibling tools like validate_cpf (CPF validation) and generate_cnpj (CNPJ generation).

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 implies usage for CNPJ validation, which is clear from the purpose. It does not explicitly mention alternatives or when not to use, but the sibling tool names provide context. Effective for a straightforward validation tool.

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/Mouraovicente/br-docs-mcp'

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