Skip to main content
Glama
Correios MCP Server

Correios MCP Server

by fabianoomura

Contratos da empresa

correios_contratos
Read-onlyIdempotent

Retrieve Correios contracts for a CNPJ, including validity and status, and filter results by active status or whether the contract is currently valid.

Instructions

Contratos dos Correios do CNPJ, com vigência e status (GET /meucontrato/v1/empresas/{cnpj}/contratos).

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

Input Schema

NameRequiredDescriptionDefault
cnpjNoCNPJ (padrão: o da credencial).
statusNoFiltra por status (ex.: ATIVO).
vigenteNoSó vigentes (true) ou não vigentes (false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and non-destructive behavior, so the safety profile is covered. The description contributes that this is a GET list operation whose results carry vigência and status fields, which is useful given there is no output schema, but it says nothing about pagination, credentials requirements, or result size.

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 front-loaded sentence with the core fact first and no filler. The parenthetical endpoint path is extra detail but compact and does clarify the API surface rather than pad the text.

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?

For a read-only listing tool with three optional, fully documented parameters and no output schema, the description is adequate but thin. It never indicates the shape or volume of returned contract records, nor how the status and vigente filters interact, both of which an agent would want before calling.

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%: the cnpj default-to-credential behavior, the status filter example (ATIVO) and the vigente boolean are all documented in the schema. The description only mentions CNPJ and vigência/status at a high level, adding no syntax or filtering semantics beyond structured data, so the baseline 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: it retrieves the Correios contracts belonging to a CNPJ, returning vigência and status, and even cites the underlying endpoint. It does not distinguish itself from the near-identical siblings correios_contrato and correios_contrato_servicos, leaving the agent to infer the singular/plural split.

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 statement of when to call this versus the singular correios_contrato or the contract-service tools, and no prerequisites or exclusions are given. Usage is only implied by the word 'Contratos' and the CNPJ path parameter.

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