Skip to main content
Glama
Correios MCP Server

Correios MCP Server

by fabianoomura

Validar código de objeto

correios_validar_codigo_objeto
Read-onlyIdempotent

Validates Correios tracking codes against the UPU S10 format and check digit without an API call, catching typos before tracking or canceling an object.

Instructions

Valida códigos de rastreio pelo padrão S10 da UPU (formato + dígito verificador), sem chamar a API. Pega erro de digitação antes de rastrear ou cancelar o objeto errado.

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": {
      "codigos": "<codigos>"
    },
    "name": "correios_validar_codigo_objeto"
  }
}

Input Schema

NameRequiredDescriptionDefault
codigosYesUm ou mais códigos no formato AA123456789BR.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, non-destructive and openWorldHint=false, so the safety profile is known. The description adds real context beyond that: validation is purely local and checks a specific external standard (format plus check digit), which tells the agent no network dependency or state change is involved. It stops short of saying how invalid codes are reported, but an output schema exists to cover that.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, zero filler: the mechanism is front-loaded and the motivation follows. No repetition of the name or title and nothing that could be cut without losing information.

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

Completeness5/5

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

For a one-parameter, side-effect-free validator with full schema coverage, an output schema and complete annotations, the description supplies everything an agent needs to decide to call it. Return-shape details are legitimately delegated to the output schema.

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 the single parameter already documents both multiplicity ('um ou mais') and the expected shape (AA123456789BR). The description names the S10 standard, which loosely reinforces the format, but adds no per-parameter detail such as whether to send one code per call or how to read per-code results — baseline 3 applies.

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 and resource ('Valida códigos de rastreio') and pins down the exact rule set applied (padrão S10 da UPU: formato + dígito verificador). An agent immediately knows this is a pure syntactic validator, not a tracking or lookup tool, which separates it from every listed sibling.

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?

Gives a concrete when-to-use: before tracking or cancelling an object, to catch typos. It also states the negative condition implicitly by saying no API call is made, so the agent knows not to use it for real status queries. No explicit named alternative is given, which keeps it below a 5.

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