Skip to main content
Glama
Correios MCP Server

Correios MCP Server

by fabianoomura

Serviços do contrato/cartão

correios_contrato_servicos
Read-onlyIdempotent

Retrieve enabled Correios service codes from a postage card or contract to select valid quote services and pre-postage codes, with local filtering by description, segment, or level.

Instructions

Códigos de serviço HABILITADOS no seu cartão de postagem (ou contrato) — a fonte de verdade para escolher servicos na cotação e codigo_servico na pré-postagem. Percorre todas as páginas.

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

Input Schema

NameRequiredDescriptionDefault
cnpjNoCNPJ (padrão: o da credencial).
buscaNoFiltra localmente por código ou trecho da descrição (ex.: 'SEDEX', 'REVERSO').
nivelNocartao = serviços do cartão de postagem (o que você pode postar); contrato = todos do contrato.cartao
contratoNoContrato (padrão: o da sessão).
segmentoNoFiltra pelo segmento (ex.: ENCOMENDA, INTERNACIONAL, LOGISTICA).
cartao_postagemNoCartão de postagem (padrão: o da sessão).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so safety is covered. The description adds a genuine behavioral trait beyond them: 'Percorre todas as páginas', telling the agent the full list is auto-paginated rather than truncated. It does not discuss credential/session resolution or rate limits, but that is minor given the annotation coverage.

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 tight sentences with the identity/value statement front-loaded and the pagination fact last. No filler or repetition of the title.

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?

Output schema exists, so return values need no explanation, and the schema documents all six optional parameters with defaults. The description covers purpose, downstream use, and pagination, leaving only credential/session fallback behavior implicit inside the schema.

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%, including defaults and the cartao/contrato enum meaning, so the schema carries parameter meaning on its own. The description mentions no parameter by name or behavior, so it adds nothing beyond the schema and 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?

Names a specific resource and scope: the service codes ENABLED on the postage card or contract, framed as 'a fonte de verdade'. That tells an agent exactly what comes back. It does not explicitly contrast itself with similar siblings such as correios_contrato_servico or correios_servicos_adicionais, so differentiation relies on the agent reading those names.

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 downstream use context — pick `servicos` for quoting and `codigo_servico` for pre-postage — which effectively says when to call it. No explicit exclusion or 'use X instead' routing is present, which is the only gap.

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