Skip to main content
Glama
nota-fiscal-mcp

nota-fiscal-mcp

by FAVIOSENGER

cancelar_nfse

Cancels an authorized NFS-e service invoice by reference with optional justification, permanently voiding the issued invoice through the tax provider.

Instructions

Cancela uma NFS-e autorizada. O cancelamento e definitivo.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ref": "<ref>"
    },
    "name": "cancelar_nfse"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesA ref da nota a cancelar.
justificativaNoMotivo do cancelamento (exigido por alguns municipios).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations provided, the description carries the full disclosure burden, and it delivers the single most important fact for a destructive operation: the cancellation is definitive and irreversible. It stops short of covering permission requirements, municipal cancellation-window restrictions, or what happens to the note's state after cancellation.

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, zero waste, with the core action stated first and the irreversible consequence immediately after. Nothing is padded or repetitive.

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?

For a simple two-parameter mutation tool with a fully documented schema and no output schema, the description covers purpose plus the key irreversibility caveat. It is only slightly thin on prerequisites such as authorization requirements and municipal cancellation deadlines.

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%, so both the ref and justificativa parameters are already documented in the schema itself. The description adds no syntax, format, or conditional meaning (e.g., that justificativa becomes effectively required in some municipalities) beyond what the schema states.

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 a specific verb and resource ("Cancela uma NFS-e") and adds a scope qualifier, "autorizada", that separates it from the emitir_* siblings. It does not explicitly name a sibling or contrast with cancelar_nfe, so differentiation rests on the NFS-e vs NF-e naming convention rather than stated guidance.

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?

The word "autorizada" implies a precondition (the note must already exist and be authorized), which is useful implied usage guidance. There is no explicit when-to-use vs when-not guidance and no pointer to consultar_nfse or cancelar_nfe as alternatives.

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