Skip to main content
Glama
Correios MCP Server

Correios MCP Server

by fabianoomura

Detalhe de agência

correios_agencia
Read-onlyIdempotent

Retrieves full details for a Brazilian postal service branch using its unit ID. Use it to look up address and service information for a Correios agency.

Instructions

Detalhe completo de uma unidade de atendimento (GET /agencia/v1/unidades/{id}).

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": {
      "id_unidade": "<id_unidade>"
    },
    "name": "correios_agencia"
  }
}

Input Schema

NameRequiredDescriptionDefault
id_unidadeYesID da unidade (de correios_agencias).

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, non-destructive and openWorld, so the safety profile is covered. The description adds the concrete HTTP route, confirming this is a network lookup against Correios' agência API, but says nothing about what 'detalhe completo' actually returns or whether unknown IDs error vs. return empty. A 3 reflects modest added value on top of strong annotations.

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?

One short sentence plus the endpoint path, front-loaded with the resource name and free of filler. The endpoint reference is arguably redundant given the tool name, but it does add concrete context, so the sentence earns its place.

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 one-parameter read-only lookup with full schema coverage and complete annotations, this is nearly sufficient: the agent knows exactly what to fetch and how to identify the unit. The remaining gap is that 'detalhe completo' is undefined with no output schema, so the agent cannot anticipate the returned fields.

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?

There is a single parameter with 100% schema description coverage, and the schema already explains that id_unidade comes from correios_agencias. The description adds no format, length, or example detail beyond that. With the schema carrying the parameter fully, 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?

The description names the resource precisely ('detalhe completo de uma unidade de atendimento') and pins the exact endpoint (GET /agencia/v1/unidades/{id}), so the agent knows this is a single-entity detail fetch. It is distinguishable from the plural sibling correios_agencias by the singular resource and the {id} path parameter. It falls short of 5 because the phrase is a noun label rather than an explicit verb, and no sibling is named as the list counterpart.

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?

The description gives no when-to-use or when-not-to-use guidance, and no prerequisites or alternatives. The only routing hint in the whole definition ('ID da unidade (de correios_agencias)') lives in the input schema, not here, so the description itself leaves usage entirely to inference.

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