Skip to main content
Glama
Correios MCP Server

Correios MCP Server

by fabianoomura

Detalhe de serviço do contrato

correios_contrato_servico
Read-onlyIdempotent

Checks whether a service code is enabled in a Correios contract or postage card, returning validity and segment details to confirm eligibility before pre-postage.

Instructions

Detalhe de um serviço no contrato/cartão (vigência, segmento) — confirma se um código está habilitado antes de pré-postar.

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": {
      "servico": "<servico>"
    },
    "name": "correios_contrato_servico"
  }
}

Input Schema

NameRequiredDescriptionDefault
cnpjNoCNPJ (padrão: o da credencial).
nivelNoConsultar no cartão de postagem ou no contrato.cartao
servicoYesCódigo do serviço (ex.: 03298).
contratoNoContrato (padrão: o da sessão).
cartao_postagemNoCartão (padrão: o da sessão).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds the return content (vigência, segmento) and the preflight validation intent, but does not say how a disabled/nonexistent code is signalled (empty result vs error), which matters for a validation call.

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?

A single sentence with the purpose front-loaded, followed by an em-dash clause that supplies the operational reason. No redundant or filler wording.

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 5-parameter read-only lookup with a fully documented schema and no output schema, the description covers purpose, returned fields and the decision it supports. It could be slightly more complete by stating what a negative lookup returns, but nothing essential is missing.

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% and each parameter already documents its default (credencial, sessão) and the cartao/contrato enum. The description only refers generically to 'um código', adding no syntax or selection guidance beyond the schema, 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?

Names a concrete verb+resource ('Detalhe de um serviço no contrato/cartão') and states the returned attributes (vigência, segmento). It does not explicitly name the plural sibling correios_contrato_servicos, so the distinction from a list-services tool is left to inference, but the 'confirma se um código está habilitado' framing makes the single-code lookup intent unambiguous.

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 when-to-use: validation of a service code before pré-postar. It stops short of naming an alternative tool or stating exclusions (e.g. what to call when you need the whole list of services), so guidance is strong but not exhaustive.

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