Skip to main content
Glama
Correios MCP Server

Correios MCP Server

by fabianoomura

Cotar frete (preço + prazo)

correios_cotar_frete
Read-onlyIdempotent

Calculates shipping prices and delivery deadlines for multiple Correios services in one call, returning sorted, combined quotes by cost so you can compare options and choose a service.

Instructions

Cota PREÇO e PRAZO de vários serviços numa chamada, já casados e ordenados do mais barato (POST /preco/v1/nacional + POST /prazo/v1/nacional).

Devolve, por serviço: preço final do contrato, preço de balcão, peso cobrado (indica cubagem), prazo em dias úteis e data máxima de entrega. Serviço indisponível vem com erro explicando. Para muitos destinos de uma vez use correios_cotar_lote.

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": {
      "cep_destino": "<cep_destino>",
      "peso_g": "<peso_g>"
    },
    "name": "correios_cotar_frete"
  }
}

Input Schema

NameRequiredDescriptionDefault
peso_gYesPeso em GRAMAS.
formatoNo1 envelope, 2 pacote/caixa, 3 rolo.2
servicosNoCódigos de serviço. Padrão: CORREIOS_SERVICOS_PADRAO ou PAC 03298 + SEDEX 03220.
altura_cmNoAltura em cm (pacote).
cep_origemNoCEP de origem. Padrão: CORREIOS_CEP_ORIGEM.
largura_cmNoLargura em cm (pacote).
cep_destinoYesCEP de destino (8 dígitos).
diametro_cmNoDiâmetro em cm (rolo).
data_postagemNoData prevista de postagem (padrão: hoje).
usar_contratoNoPreço do SEU contrato (nuContrato/nuDR da sessão). false = preço de balcão.
comprimento_cmNoComprimento em cm (pacote e rolo).
valor_declaradoNoValor declarado em R$ (exige o adicional de VD; 019 SEDEX, 064 PAC).
servicos_adicionaisNoCódigos de adicionais, ex.: ['001'] para AR.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare this as a read-only, idempotent, non-destructive open-world call, so the safety profile needs no restating. The description adds genuinely useful context about what each service row contains (contract vs counter price, billed weight that reveals cubage, business-day deadline, max delivery date) and that unavailable services return an `erro` field, but since an output schema exists this is supplementary rather than load-bearing.

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?

Front-loads the core capability, then the return contents, then the sibling routing in a compact progression. The parenthetical endpoint list is arguably redundant noise, but the rest of the prose earns its place with no filler sentences.

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 13-parameter pricing tool with annotations covering safety and an output schema covering return shape, the description supplies the missing behavioural pieces: result ordering, error representation for unavailable services, and the many-destinations alternative. It is close to complete, with only the deadline-only sibling left unaddressed.

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 all 13 parameters (including peso_g in grams, formato enum, and the dimensional fields) are documented in the schema itself, so the baseline of 3 applies. The description only obliquely touches parameters by mentioning cubage and both price modes, without adding syntax or format detail beyond the schema.

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?

Names a specific verb ("Cota") and both resources (PREÇO and PRAZO), states the scope (several services in one call, already paired and sorted cheapest-first) and even cites the underlying endpoints. This is clearly distinguishable from correios_prazo (deadline only) and correios_cotar_lote (many destinations).

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?

Explicitly routes the agent to correios_cotar_lote when quoting many destinations at once, giving a concrete condition that selects the alternative. It does not mention correios_prazo for deadline-only queries, but the primary alternative is named with its trigger, so guidance is clear if not exhaustive.

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