Skip to main content
Glama

Stackin

invalidate_numbering

Destructive

Declare an NF-e numbering range reserved but never used.

NF-e numbering has to be continuous, so a gap left by a failed issuance is explained to the SEFAZ with this — not with a new document. Irreversible: a number declared unused can never be used.

Only for numbers that were never authorized. An authorized document is cancelled, never invalidated. Confirm the range with the user and read it back before calling: the range is inclusive, and one digit wrong burns numbers the company still needs.

The SDK refuses a backwards range and a reason outside 15-255 characters before anything is transmitted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonYes
seriesYes
number_endYes
number_startYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoLocal id. Use it for reissue and for submissions, and when a document was rejected and has no key.
statusNoissued, rejected or cancelled.
protocolNoThe authorization protocol, when granted.
access_keyNoThe authorizer's key. Absent while the document is not authorized.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

The description goes beyond the destructiveHint annotation by explicitly stating the operation is irreversible and that declared numbers can never be used again. It also warns about the risk of burning numbers if the range is wrong, and mentions SDK-level validations before transmission, giving a full picture of the tool's side effects.

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 somewhat lengthy but every sentence adds critical information about usage, constraints, and side effects. The structure is clear, with repeated emphasis on key points (irreversibility, application scope, and confirmation) that are essential for safe invocation.

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 operation's destructive and irreversible nature, the description covers all necessary context: when to use it, when not to use it, what validation the SDK performs, and the need for user confirmation. The existence of an output schema is not relevant to explaining the tool's behavior, and no critical context appears missing.

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

Parameters4/5

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

While the schema lists parameters without descriptions, the tool description provides meaningful context: it explains the reason must be 15-255 characters and that the range must be non-backwards. It does not define 'series' explicitly, but the overall purpose and constraints give sufficient guidance for an agent to infer the parameters' roles.

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's purpose: declaring an NF-e numbering range as reserved but unused, to maintain continuous numbering. It explicitly contrasts this with issuing a new document and with canceling an authorized document, making it distinct from sibling tools like 'cancel_invoice' and 'issue_invoice'.

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

Usage Guidelines5/5

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

The description provides explicit usage guidance, including that it applies only to never-authorized numbers, that authorized documents should be canceled instead, and that the user must confirm the range before calling. It also indicates the SDK will refuse backwards ranges and invalid reason lengths, which helps the agent avoid invalid calls.

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.