Skip to main content
Glama

Arquivix Notas · NFS-e

cte_readiness

Read-onlyIdempotent

Asks the CCC of the SVRS now whether the carrier is credentialed to issue CT-e (indCredCTe), and what else is missing (certificate, RNTRC, settings). A carrier that is not credentialed cannot issue CT-e.

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

Input Schema

NameRequiredDescriptionDefault
company_idYesUUID of the carrier

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuinely new context: the check is performed live against an external authority ('asks the CCC of the SVRS now') and it discloses the specific result fields (indCredCTe, missing certificate, RNTRC, settings), which matters because there is no output schema.

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 sentences, both load-bearing: the first defines the check and its outputs, the second gives the business consequence. The core action is front-loaded with no filler or restatement of the tool name.

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 single-parameter read tool with full annotation coverage and no output schema, the description supplies the essential return-value shape and the external-dependency context. The only shortfall is the absence of explicit ordering advice relative to cte_issue, which would fully close the loop.

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?

There is a single parameter, company_id, and schema description coverage is 100%, so the schema already documents it as the carrier's UUID. The description does not add format, sourcing, or lookup hints for that identifier, so the baseline of 3 applies.

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?

The description names a specific verb+resource pair: querying the SVRS/CCC for whether a carrier holds the CT-e credential (indCredCTe). It also enumerates the secondary results returned (certificate, RNTRC, settings), so an agent can readily separate this diagnostic check from mutation siblings like cte_issue or cte_cancel. It stops short of naming a specific sibling as the contrasting alternative.

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 closing sentence, 'A carrier that is not credentialed cannot issue CT-e,' implies this is a pre-flight gate before issuing, but the description never says so directly and never names an alternative or exclusion. Usage is inferable rather than stated, which is the definition of minimum-viable guidance.

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