Skip to main content
Glama
Correios MCP Server

Correios MCP Server

by fabianoomura

Sessão e APIs liberadas

correios_sessao
Read-onlyIdempotent

Authenticate a Correios API session to retrieve contract, DR, posting card, enabled CWS APIs, and token expiry, providing defaults for pricing, labels, and invoices.

Instructions

Autentica e devolve os dados da sessão: ambiente, CNPJ, contrato, DR, cartão de postagem, APIs do catálogo CWS liberadas para o token (com nome quando conhecido) e validade do token. Contrato e DR daqui são usados como padrão pelas outras tools (preço, faturas, rótulos…).

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), yet the description still adds substance: it discloses that authentication occurs, that a token with a validity window is involved, and that session-derived contract/DR propagate as defaults to other tools. The notable gap is that with zero parameters it never explains where the credentials come from or what happens on auth failure.

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?

Two sentences, front-loaded with the action and then the returned payload; nothing is padded. Minor deductions for the trailing list that fades into an ellipsis ("preço, faturas, rótulos…") and the hedged "com nome quando conhecido", which is less precise than the rest.

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?

An output schema exists, so return values are largely self-documenting, and the description still summarizes them plus the important cross-tool defaulting behavior for a zero-parameter read-only session tool. What remains unstated is the authentication mechanism and token-expiry handling, the main things an agent could get wrong here.

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?

The tool takes no parameters, so the baseline is 4. The description does not need to document inputs, and it usefully clarifies that the output implicitly carries configuration used downstream.

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?

"Autentica e devolve os dados da sessão" gives a concrete verb pair plus resource, then enumerates exactly what comes back: ambiente, CNPJ, contrato, DR, cartão de postagem, APIs liberadas e validade do token. The closing sentence establishes its distinct role as the source of contract/DR defaults for the quoting, invoicing and label tools, so an agent can separate it from siblings like correios_contrato or correios_config_status.

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?

"Contrato e DR daqui são usados como padrão pelas outras tools" strongly implies this should be consulted before tools that need those identifiers, which is real selection guidance. It stops short of an explicit directive ("call this first") and says nothing about when it is unnecessary or what to do if the token is expired.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.