Skip to main content
Glama

Arquivix Notas · NFS-e

nfe_settings_get

Read-onlyIdempotent

NF-e and NFC-e settings of a company (state registration, CRT, default series, NFC-e series, nature of operation and tax defaults) and what is still missing (missing) before it can issue an NF-e. readiness says whether the company can issue NF-e and NFC-e: by default it is the last answer kept (null if never checked); with check_sefaz=true it asks the SEFAZ now (Consulta Cadastro, with the company certificate) which state registrations (IE) the CNPJ has and whether they are enabled, and answers status, a plain pt-BR message and suggestedStateRegistration (the IE the SEFAZ has for the CNPJ). The check is most useful before the first NF-e or NFC-e of a company and after a 245 rejection ("CNPJ Emitente não cadastrado"): a company with no IE (service-only) cannot issue NF-e or NFC-e. unavailable means the state has no consulta or the SEFAZ did not answer: nothing is known.

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>"
    },
    "name": "nfe_settings_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
company_idYesUUID of the company
check_sefazNotrue asks the SEFAZ now and fills `readiness` with the live answer. Default false: no SEFAZ call.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare the safe, idempotent, open-world read profile, and the description goes well beyond them: it explains that `readiness` is a cached last answer (null if never checked), that check_sefaz=true performs a live Consulta Cadastro using the company certificate, and that `unavailable` means the state has no consulta or SEFAZ did not respond. That is exactly the external-effect and caching context an agent needs.

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 content is dense and largely front-loaded: settings and `missing` first, then `readiness`, then the SEFAZ check, then the `unavailable` case. It is a single long block with some embedded clauses that could be split for readability, but every sentence carries operational meaning.

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?

With no output schema, the description does the heavy lifting for return values, explaining `missing`, `readiness`, `status`, `message`, and `suggestedStateRegistration`. The settings fields themselves are only enumerated in parentheses without type or shape detail, which leaves a small gap for a tool whose primary payload is those settings.

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 already 100%, but the description still adds meaning to check_sefaz by spelling out the live-vs-cached tradeoff, the certificate dependency, and the default false behavior. It does not add format or syntax detail beyond that, so it sits above the schema baseline without being exhaustive.

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 names the exact resource (NF-e/NFC-e settings of a company) and enumerates the fields returned — state registration, CRT, default series, NFC-e series, nature of operation, tax defaults — plus the derived `missing` and `readiness` information. That is specific enough to separate it cleanly from nfe_settings_update and from sibling readiness tools.

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?

It gives an explicit decision rule for the optional SEFAZ check: 'most useful before the first NF-e or NFC-e of a company and after a 245 rejection'. What is missing is guidance on when to call this tool instead of adjacent siblings such as company_fiscal_status or cte_readiness, so the routing advice is incomplete rather than absent.

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