Skip to main content
Glama
Correios MCP Server

Correios MCP Server

by fabianoomura

Detalhe do contrato

correios_contrato
Read-onlyIdempotent

Retrieve full contract details for a Correios client, including validity, commercial category, and commercial management contacts, using CNPJ or contract number.

Instructions

Visão do contrato numa chamada: dados e vigência, categoria comercial (ex.: PLATINUM), contatos da gerência comercial e do acompanhamento. Partes indisponíveis vêm em indisponivel.

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

Input Schema

NameRequiredDescriptionDefault
cnpjNoCNPJ (padrão: o da credencial).
contratoNoNúmero do contrato (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

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds a genuinely non-obvious behavioral trait: unavailable sections are returned as the sentinel `indisponivel` rather than erroring or being omitted, which tells the agent how to interpret partial results.

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 short sentences, front-loaded with the core claim ('Visão do contrato numa chamada') followed by the content enumeration and the edge-case note. No filler, no repetition of the title or of schema details.

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 an output schema present and full parameter coverage, the description need only explain what the call encompasses and any non-obvious result behavior, both of which it does. The only gap is the absence of routing guidance relative to the closely named contract siblings, a moderate omission for an otherwise complete definition.

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%: both parameters (cnpj, contrato) are documented with their session/credential defaults, so the description carries no additional burden. The description adds no meaning about what the parameters select beyond what the schema already states, which is the baseline 3 case.

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+resource: a consolidated single-call view of a contract, enumerating what it returns (dados e vigência, categoria comercial, contatos da gerência comercial e do acompanhamento). This distinguishes it in substance from the list-style siblings (correios_contratos) and the service-level siblings (correios_contrato_servico/servicos), though it never names an alternative explicitly.

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

Usage Guidelines3/5

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

The phrase 'numa chamada' implies this is the one-shot aggregate view you take instead of assembling pieces from other calls, which is useful implied guidance. However there is no explicit when-to-use/when-not statement and no mention of the relationship to correios_contrato_servico or correios_contratos, leaving the agent to infer.

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