Skip to main content
Glama

Arquivix Notas · NFS-e

nfse_repeat

Destructive

Issues a new NFS-e copying a previous one: same company, customer, service description, service code, municipality, amount, discount, deduction, purchase order and notes. Typical request: "emit the same invoice as last month for customer X". The previous note is identified by its invoice_id or access_key. Optional amount, description and competence_date replace the copied values (a new amount drops the copied discount and deduction); competence_date defaults to today (America/Sao_Paulo). It uses a credit like a new NFS-e and returns immediately with the queued status.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "nfse_repeat"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountNoNew total in BRL. Defaults to the copied amount.
access_keyNoAccess key of the note to copy. Either this or invoice_id.
invoice_idNoUUID of the note to copy. Either this or access_key.
descriptionNoNew service description. Defaults to the copied one.
competence_dateNoYYYY-MM-DD. Defaults to today (America/Sao_Paulo).
idempotency_keyNoRepeat the same key to avoid issuing twice.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare destructive/openWorld/non-readOnly; the description adds real substance: it consumes a credit like a new NFS-e, returns immediately in a queued status, and warns that supplying a new amount silently drops the copied discount and deduction. That side-effect disclosure is exactly the kind of behavior an agent needs. It never addresses the idempotency_key parameter even though idempotentHint=false, leaving repeat-submission risk unexplained.

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?

Front-loaded with the core action, then usage example, then overrides, then execution semantics — a logical order with no filler. The field enumeration in the first sentence is long but each item carries information about what is copied.

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 mutating, credit-consuming, asynchronous tool with no output schema, the description covers what is copied, what can be overridden, cost, and return status, which is close to complete. Gaps remain around idempotency guidance and how a queued result is later retrieved or cancelled.

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?

Schema coverage is 100%, so baseline is 3, and the description still adds meaning beyond it: the override cascade where a new amount drops the copied discount and deduction, and the America/Sao_Paulo default for competence_date. It omits any explanation of idempotency_key, which the schema only describes in one short line.

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?

States a specific verb and resource ("Issues a new NFS-e copying a previous one") and immediately enumerates exactly what gets carried over, so an agent knows this is a clone-and-issue operation rather than a fresh issue. It is clearly separable from nfse_issue or nfse_substitute even without naming them, because the copied-field list defines the operation.

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?

Gives an explicit trigger scenario ("emit the same invoice as last month for customer X") plus the required reference to the source note via invoice_id or access_key, which is enough context to select it. It stops short of naming an alternative and stating when not to use it, e.g. when a fresh issue or a substitution is needed.

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.

Resources