Skip to main content
Glama

Arquivix Notas · NFS-e

company_numbering_check

Read-onlyIdempotent

Checks with the government whether the next note numbers (DPS) of a company were already used, for example when the company issued before on the government portal or in another system. Read-only: it issues nothing and never changes the numbering. It is informational: issuing already skips the numbers the government confirms as used on the first note of a company. Takes company_id or tax_id (CNPJ).

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": "company_numbering_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
tax_idNoCNPJ; punctuation is optional.
company_idNoCompany id (UUID).

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds real value beyond that: it explains the consequence of the result (purely informational, numbering is never changed, issuance already handles skipping), which shapes how the agent should act on the output.

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-loads the core action and follows with the read-only and informational caveats in order of importance. Slightly padded by restating the read-only guarantee that annotations already carry, but every sentence is short and purposeful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description never says what the check actually returns (a list of used numbers, a boolean, a range), leaving the agent to guess the response shape. Safety and input semantics are well covered, so the gap is narrow but real.

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 the baseline is 3, but the description adds that either company_id or tax_id (CNPJ) may be supplied as alternatives — a relationship the schema (two optional properties, no oneOf) does not express on its own.

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 — checking with the government whether a company's next note numbers (DPS) are already used — and scopes it clearly against issuance tools by saying it issues nothing. The agent can tell what this does without opening the schema.

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 a concrete usage context (company previously issued on the government portal or another system) and implicitly states when it is not needed by noting that issuing already skips numbers the government confirms as used. No sibling is named explicitly, so it stops short of a full alternative-routing statement.

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