Skip to main content
Glama
Correios MCP Server

Correios MCP Server

by fabianoomura

Preço internacional

correios_preco_internacional
Read-onlyIdempotent

Calculate international shipping prices by service, destination country, and weight, and identify unsupported destinations before preparing a shipment.

Instructions

Preço de envio internacional (GET /preco/v1/internacional/{coProduto}). A API recusa países que o serviço não atende (ERP-025).

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>",
      "pais_destino": "<pais_destino>",
      "peso_g": "<peso_g>"
    },
    "name": "correios_preco_internacional"
  }
}

Input Schema

NameRequiredDescriptionDefault
peso_gYesPeso em gramas.
formatoNo1 envelope, 2 pacote, 3 rolo.2
servicoYesCódigo do serviço internacional (ex.: 45110 Exporta Fácil Expresso).
altura_cmNoAltura em cm.
cep_origemNoCEP de origem (obrigatório na API). Padrão: CORREIOS_CEP_ORIGEM.
largura_cmNoLargura em cm.
pais_destinoYesSigla ISO do país de destino (ex.: US, PT).
usar_contratoNoPreço do contrato.
comprimento_cmNoComprimento em cm.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds one genuinely useful behavioral fact beyond that: the API rejects countries the service does not serve (ERP-025), which tells an agent to expect a hard failure for unsupported destinations. It does not cover error format, pagination, or rate limits, so it stays at an adequate rather than rich level.

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 short sentences, front-loaded with the core purpose and followed by the one caveat that matters. The endpoint path in parentheses is marginally redundant but does anchor the tool to a concrete API operation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With nine parameters and no output schema, the description should indicate what comes back — a price value, currency, maybe delivery context — but says nothing about the return. The one failure mode it does document is valuable, leaving a moderate gap for a tool whose result shape is undocumented elsewhere.

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%, so each of the nine parameters is already documented with types, enums, and defaults (including the CORREIOS_CEP_ORIGEM fallback for cep_origem). The description adds no semantics for any parameter, so 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?

The description states a specific verb+resource: international shipping price, plus the underlying endpoint GET /preco/v1/internacional/{coProduto}. That distinguishes it in practice from correios_prazo_internacional (deadlines), though the differentiation is implicit in the noun 'preço' rather than called out explicitly.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus alternatives such as correios_cotar_frete or correios_prazo_internacional, nor any prerequisite notes. The only contextual statement is an API rejection rule, which is a constraint rather than usage guidance.

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