Skip to main content
Glama
Correios MCP Server

Correios MCP Server

by fabianoomura

Cotar frete em lote

correios_cotar_lote
Read-onlyIdempotent

Quote shipping prices and delivery times for many destinations in one batch, returning per-item reference, service, price, and deadline results for bulk Correios calculations.

Instructions

Cota muitos destinos de uma vez (ex.: todas as capitais, ou os pedidos do dia), em lotes de até 100 itens de preço e 20 de prazo, como a API exige. Cada linha traz referencia, serviço, preço e prazo.

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": {
      "destinos": "<destinos>"
    },
    "name": "correios_cotar_lote"
  }
}

Input Schema

NameRequiredDescriptionDefault
destinosYesAté 100 combinações destino×objeto (dividido por serviço).
servicosNoCódigos de serviço (padrão PAC+SEDEX).
cep_origemNoCEP de origem. Padrão: CORREIOS_CEP_ORIGEM.
incluir_prazoNoTambém consulta o prazo de cada combinação.
usar_contratoNoPreço do contrato (true) ou de balcão (false).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, open-world and non-destructive behavior, so the safety profile is covered. The description adds real operational detail not in the structured fields: the 100-item price chunk and 20-item deadline chunk, framed as an API-imposed constraint, plus what each result row contains. It does not discuss failure modes when a batch exceeds the limits, which keeps it out of the top band.

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?

Two sentences, the scale and the size limits front-loaded, with no filler. The second sentence is short and earns its place by describing the row shape, though the chunk-limit clause is dense enough to slow a first read.

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 annotations, an output schema and full parameter descriptions already available, the definition's job is to explain the batching model and return shape, which it does. Remaining gaps are minor: it doesn't say whether exceeding 100 destinations is rejected or split, nor how CEP origin defaults interact with the contract flag.

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%, so all five parameters, their defaults and the nested DestinoCotacao fields are already documented. The description only echoes the `referencia` echo-back behavior and the batch cap, adding little syntax or semantics beyond the schema, so 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 states a specific verb and resource ("Cota muitos destinos de uma vez") and conveys the batching scope, which distinguishes it by implication from the single-destination sibling correios_cotar_frete. It stops short of naming that alternative, so the differentiation is inferable rather than explicit.

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?

Usage is conveyed only through examples (all capitals, the day's orders), which implies bulk use but never says when to prefer this over the single-quote tool or what happens with inputs above the stated limits. The agent must infer the routing decision from tool names alone.

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