Skip to main content
Glama
Correios MCP Server

Correios MCP Server

by fabianoomura

Localidades com agência

correios_agencia_localidades
Read-onlyIdempotent

Lists neighborhoods and localities with a Correios service unit in a given Brazilian state (UF) or municipality, so you can find available agency locations by area.

Instructions

Bairros/localidades que têm unidade de atendimento numa UF ou município (GET /agencia/v1/localidades).

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": {
      "uf": "<uf>"
    },
    "name": "correios_agencia_localidades"
  }
}

Input Schema

NameRequiredDescriptionDefault
ufYesSigla da UF (obrigatória).
tipoNoCódigo do tipo de unidade.
statusNoCódigo do status.
municipioNoMunicípio.

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 readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds the endpoint path and the fact that results are limited to localities holding a service unit, but says nothing about result volume, pagination, or what happens when a UF has no agencies, which is a modest addition over the 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?

A single front-loaded sentence with the resource first and the endpoint in parentheses; nothing is padded. The phrasing is dense Portuguese and the endpoint annotation is somewhat redundant, but it is efficient overall.

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 read-only list tool with full annotation coverage and a fully documented four-parameter schema, the description covers what is returned (localities with a service unit) and under which geographic scope. No output schema exists, so a hint about the return shape would help, but the implicit 'list of localities' is adequate.

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%, with uf documented as mandatory and tipo/status/municipio as optional codes, so the baseline is 3. The description only echoes the uf/municipio scoping and adds no format hints for tipo or status code values, which would have been genuinely useful given there are no enums.

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?

States a specific resource (bairros/localidades com unidade de atendimento) and the underlying endpoint GET /agencia/v1/localidades, so the agent knows exactly what is being listed. It does not distinguish itself from the similarly-named siblings correios_localidades or correios_bairros, which is the only thing keeping it short of a 5.

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 explicit when-to-use or when-not-to-use guidance and no sibling is named as an alternative. The qualifier 'que têm unidade de atendimento' hints at a scoping use case (localities that actually host an agency), but the agent must infer that this differs from correios_bairros on its own.

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