Skip to main content
Glama

Arquivix Notas · NFS-e

nfe_validate

Read-onlyIdempotent

Dry-run of an NF-e or a NFC-e: checks the data and returns the problems field by field (issues), without numbering, sending or charging anything. Issuing runs the same checks. valid only says the data is fine: warnings (when present) comes from the last SEFAZ check kept for the company and says it may not be able to issue (for example the SEFAZ answered 257, no state registration or not enabled), or that it was never checked. Warnings do not block. Homologação (test) only for now.

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": {
      "company_id": "<company_id>",
      "nfe": "<nfe>"
    },
    "name": "nfe_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
nfeYesThe NF-e as in POST /v1/invoices (camelCase, without companyId and type): recipient {taxId, name, indIeDest, stateRegistration?, email?, address{street, number, district, zip, cityCode, city, state}}, items[] {code, description, ncm, cfop, unit, quantity, unitPrice, tax? {csosn}}, payments[] {tPag, amount, card? {tpIntegra?, cnpj?, tBand?, cAut?}: left out, tPag 03, 04 and 17 go with tpIntegra 2}, natOp?, change?, additionalInfo?. The customer informs CFOP, NCM and CSOSN; Arquivix Notas calculates an estimate (Simples credit and approximate taxes). Phase 1: homologação only, Simples Nacional (CSOSN 102 or 400). For type "nfce" (consumer sale, model 65) put the NFC-e here instead: recipient? {taxId?, name?, email?, address? (needed for indPres 4)}, indPres? (1 in person, 4 delivery, 5 in person outside the store), items[], payments[] {tPag, amount, card? {tpIntegra?, cnpj?, tBand?, cAut?}}, change?, additionalInfo?; no natOp. The CPF/CNPJ of the consumer is optional but required above the limit of the state (R$ 10.000,00 by default). The NFC-e uses QR Code v3 (no CSC), has no correction letter and can be cancelled within 30 minutes.
typeNoWhich note to check: "nfe" (default) or "nfce" (consumer sale).nfe
company_idYesUUID of the issuing company.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.3/5.0
Behavior5/5

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

Despite annotations already indicating readOnlyHint and idempotentHint, the description adds substantial behavioral context: it explains that validation returns field-by-field issues, that 'valid' only means the data is fine, that 'warnings' come from the last SEFAZ check and do not block issuance, and that only homologação (test) is supported. This goes well beyond the structured annotations.

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 front-loaded with the core purpose and flows logically into caveats about 'valid' and 'warnings.' It is slightly dense, but every sentence contributes useful information and there is no redundant padding.

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 validation tool with nested objects and no output schema, the description adequately explains what is returned (issues, valid, warnings) and the main limitations (homologação only, warnings do not block). It could explicitly mention how to interpret the issues list, but overall it is complete enough for correct invocation.

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 the schema already documents all parameters in detail. The description itself adds little parameter-level detail beyond the schema, which is acceptable when the schema does the heavy lifting; a baseline score of 3 is appropriate.

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 a specific verb and resource: 'Dry-run of an NF-e or a NFC-e: checks the data and returns the problems field by field (issues), without numbering, sending or charging anything.' It distinguishes itself from issuing by noting 'Issuing runs the same checks,' so an agent can tell it apart from siblings like nfe_issue.

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 makes the use case clear: a dry-run validation before issuing. It does not explicitly name alternatives or exclusions beyond the implicit contrast with issuing, but the context (no side effects, homologação only) is clear enough for an agent to know when to invoke it.

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