Skip to main content
Glama
sebastienrousseau

structured-address-fix-mcp

Validate a postal-code policy

validate_postal_policy
Read-onlyIdempotent

Validate an address's postal code against US, GB, DE, FR, or JP format policies, returning compliance status and descriptive policy errors for invalid or missing codes.

Instructions

Validate an address's post_code against a country's format policy.

Supported policies: US (5-digit ZIP or ZIP+4), GB (alphanumeric UK
postcode), DE and FR (5 digits), JP (3-then-4 digits). The address is a
canonical-field JSON object; only its ``post_code`` is inspected.

Args:
    address: The structured address whose post_code to validate.
    country_code: The alpha-2 code selecting the policy.

Returns ``{"is_compliant": bool, "policy_errors": [...]}``. An unknown
country or a missing post_code is reported as non-compliant with a
descriptive error rather than raising.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesAn ISO 20022 postal address as a JSON object using canonical field names, e.g. {'street_name': 'Downing St', 'building_number': '10', 'post_code': 'SW1A 2AA', 'town_name': 'London', 'country': 'GB'} or {'address_lines': ['10 Downing St', 'London SW1A 2AA'], 'country': 'GB'}.
country_codeYesThe ISO 3166-1 alpha-2 code whose post_code policy to apply (US, GB, DE, FR, JP).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

TDQS

A4.7/5.0
Behavior5/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds valuable behavior beyond annotations: it states that only post_code is inspected, and that unknown country or missing post_code returns non-compliant with a descriptive error rather than raising. This is exactly the kind of extra behavioral context that helps an agent.

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 well-structured: a one-sentence summary, a compact list of supported policies, a scope note, and a clear Args/Returns breakdown. Every sentence contributes operational knowledge and the most important information is front-loaded.

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 validation tool with two required parameters, full schema descriptions, rich annotations, and an explicit return format, the description covers all essential operational details: supported formats, input shape, return keys, and error behavior. There is no significant missing information an agent would need to invoke it correctly.

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?

The schema has 100% parameter description coverage, so the baseline is 3. The description adds meaningful value by enumerating the exact country code formats (e.g., US 5-digit ZIP or ZIP+4, GB alphanumeric) and emphasizing that only the post_code field of the address is considered. This supplements the schema descriptions usefully.

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 opens with a specific verb-resource pair: 'Validate an address's post_code against a country's format policy.' It also clarifies the exact scope (only post_code is inspected) and lists the supported country policies, making the tool's role distinct from siblings like assess_address or remediate_address.

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 clearly states the supported policies (US, GB, DE, FR, JP) and the condition of the tool—it only inspects post_code, not other address fields. It gives adequate context for when to use it, but it does not explicitly mention alternatives or state when not to use it relative to sibling tools.

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

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/sebastienrousseau/structured-address-fix-mcp'

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