Skip to main content
Glama
josemvelez78

mcp-europe-business

validate_postal_code

Read-onlyIdempotent

Validates European postal codes against official country patterns for e-commerce, address verification, and logistics workflows. Returns valid/invalid status, formatted code, and country.

Instructions

Validates a postal code format for a given European country using the official pattern for that country. Returns { valid: boolean, postal_code: string, country: string, format: string }. Supports PT (4+3 digit), ES (5 digit), FR (5 digit), DE (5 digit), IT (5 digit), NL (4 digits + 2 letters), BE (4 digit), PL (5+2 digit), SE (5 digit), AT (4 digit), IE (Eircode 3+4), GR (5 digit), HU (4 digit), RO (6 digit), UK (complex alphanumeric). Use in e-commerce checkout validation, address verification, or logistics workflows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
postal_codeYesPostal code to validate. Example: '1000-001' for PT, '28001' for ES, 'SW1A 1AA' for UK
country_codeYesTwo-letter ISO country code. Example: 'PT', 'DE', 'UK'

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 provide readOnlyHint and idempotentHint, indicating safe and idempotent operation. The description adds value by specifying the return structure (valid, postal_code, country, format) and listing supported country formats, which goes beyond what annotations provide. No contradictions.

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?

The description is concise and packs necessary information (supported countries, formats, use cases) into a single paragraph. It could be slightly better structured (e.g., bullet points for countries) but is efficient and front-loaded with purpose.

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?

Given the complexity of multiple country patterns, the description covers purpose, parameters, output structure, and use cases thoroughly. The output schema is mentioned, and annotations handle safety. No gaps remain for an agent to select and invoke this tool correctly.

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

Parameters5/5

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

Schema coverage is 100%, but the description adds significant context: example postal codes for various countries, clarification that country_code is two-letter ISO, and details of the return format. This enhances understanding beyond the schema alone.

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 European countries using official patterns, lists supported countries and formats, and mentions use cases (e-commerce, address verification, logistics). It distinguishes itself from sibling validation tools like validate_iban or validate_nif by focusing specifically on postal codes.

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 implies usage through listed supported countries and example use cases, but does not explicitly state when to use versus alternatives or when not to use. However, given the specificity of postal code validation, the guidance is clear enough for an agent.

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-europe-business'

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