Skip to main content
Glama

Arquivix Notas · NFS-e

cte_sync

Idempotent

Asks the SVRS by key what it has for a CT-e without a final answer (processing, retry_pending, reconciliation_required) and brings the status up to date. Changes nothing at the SVRS.

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_sync"
  }
}

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

A4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and idempotentHint=true, so the agent knows local state mutates. The description adds the crucial clarification that nothing changes at the SVRS, which resolves the apparent tension of a write-flagged tool against an external system, and the enumerated non-final statuses tell the agent what state it is repairing. Auth requirements and the exact returned status are not covered.

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, no waste, with the action front-loaded and the side-effect guarantee placed last for emphasis. The parenthetical status list is compact and informative.

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 one-parameter tool with no output schema, the description covers what it does, when it applies, and what it does not touch. A brief note on what the caller gets back (the refreshed status or the sync outcome) would close the only remaining gap.

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% for the single cte_id parameter, so the schema already carries the semantics. The phrase 'by key' loosely reinforces that the identifier is the lookup key but adds no format or constraint detail beyond the schema.

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?

States a specific verb and resource: queries the SVRS for a CT-e's current state and refreshes the local status. The mention of 'the SVRS' implicitly separates it from a plain local read like cte_get, though it never names that sibling.

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 clear triggering condition — CT-e records without a final answer, enumerated as processing, retry_pending, reconciliation_required. It does not say what to use instead when the CT-e already has a final answer, but the context is otherwise unambiguous.

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