Skip to main content
Glama

Arquivix Notas · NFS-e

cte_get

Read-onlyIdempotent

One CT-e: status, series, number, access key, protocol, the SVRS answer (cStat, xMotivo), the content and its events (cancellation and correction letters, with status and protocol).

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": {
      "cte_id": "<cte_id>"
    },
    "name": "cte_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
cte_idYesUUID of the CT-e

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.5/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=false, so safety is covered. The description adds genuine value beyond them by disclosing what the payload contains, including the SVRS response fields (cStat, xMotivo) and nested events such as cancellation and correction letters with their own status and protocol. It does not cover not-found behavior or whether events are always present, which keeps it from a 5.

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?

A single dense sentence with no filler, front-loaded with the resource identity and then the returned fields. It is a sentence fragment rather than prose, but every clause enumerates a distinct part of the response, so nothing is wasted.

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 carries the burden of explaining return values, and it does so concretely, including the nested event records. For a one-parameter read tool this is close to sufficient; only error/empty-result behavior is unaddressed.

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 coverage is 100% with a single cte_id parameter documented as a UUID, so the schema carries the load. The description adds no format, sourcing, or lookup hints for that identifier beyond implying a single-record fetch, which is the baseline expectation.

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 the resource precisely ("One CT-e") and enumerates the specific fields returned: status, series, number, access key, protocol, SVRS answer, content and events. That is far more specific than the name alone, and the word "One" implicitly contrasts with the sibling cte_list. It loses a point only because there is no explicit verb and no stated differentiation from cte_list.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisites (e.g. that the CT-e must already have been issued), and no mention of when to prefer cte_list or cte_readiness instead. The single-vs-list distinction is only hinted at by the word "One", leaving the agent to infer routing.

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