Skip to main content
Glama

validate_postal_code_latam

Read-onlyIdempotent

Validates postal code format for Latin American countries (BR, MX, CL, AR, CO) using official patterns, ensuring correct addresses for checkout and logistics.

Instructions

Validates a postal code format for a given Latin American country using the official pattern for that country. Returns { valid: boolean, postal_code: string, country: string, format: string }. Supports BR (8-digit CEP), MX (5-digit CP), CL (7-digit with dash), AR (4-digit legacy or CPA alphanumeric), CO (6-digit). Use in e-commerce checkout validation, address verification, or logistics workflows across LatAm markets.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
postal_codeYesPostal code to validate. Example: '01310-100' for BR, '06600' for MX, '8320000' for CL
country_codeYesTwo-letter ISO country code. Example: 'BR', 'MX', 'CL', 'AR', 'CO'

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
validYes
postal_codeNo
countryNo
formatNo
reasonNo
Behavior4/5

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

Annotations already indicate readOnlyHint and idempotentHint. The description adds value by detailing the return structure and supported country patterns, without contradicting annotations.

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?

The description is brief (3 sentences), front-loads the purpose, includes return format and examples, and contains no redundant 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?

The tool has an output schema, so return values need not be fully detailed. The description covers purpose, supported countries, format patterns, and usage context, making it complete for an agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, with each parameter described. The description adds country-specific format examples, providing extra context beyond the schema.

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?

The description clearly states the tool validates postal code format for Latin American countries using official patterns, lists supported countries with their formats, and distinguishes it from unrelated sibling tools like VAT or holiday calculators.

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?

The description suggests use cases (e-commerce checkout, address verification, logistics) but does not explicitly mention when not to use or name alternatives, though it's clear no other sibling tool performs postal code validation.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/josemvelez78/mcp-latam-business'

If you have feedback or need assistance with the MCP directory API, please join our Discord server