Skip to main content
Glama

mechacut

validate_postal

Postal-code grammar by country (54 shipped patterns): valid + canonical spacing (BR CEP, CA A1A 1A1, NL 1234 AB, JP, PT) + the regex on failure. Structure check, not a postcode oracle — the verdict says which. Free.

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": {
      "code": "<code>",
      "country": "<country>"
    },
    "name": "validate_postal"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
countryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does useful work by disclosing the response shape (verdict plus canonical spacing, regex on failure) and the 54-country coverage limit. The 'Free' note signals no metering cost. It omits what happens for an unsupported or lowercase country value, which matters at 54-of-~250 coverage.

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?

Front-loaded and dense — the core function, output shape, and scope limit land in three short clauses with no filler. The parenthetical pattern list is truncated ('JP, PT') in a way that is illustrative rather than noisy, so little is wasted.

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

Completeness3/5

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

With no output schema and two required parameters, the description must cover both input expectations and return values; it handles the return values (verdict, canonical spacing, regex) but leaves the country-code format and unsupported-country behavior undefined. Adequate to call, not quite adequate to call confidently on every input.

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 0% for both parameters, so the description must compensate, and it only partially does: it clarifies that 'code' is the postal string whose canonical spacing is checked and that 'country' selects the grammar. It never states the expected country format (ISO alpha-2 vs. name), a real ambiguity for a required parameter.

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 the resource precisely (postal-code grammar per country) and scopes it concretely: 54 shipped patterns, canonical spacing output, regex returned on failure. The clause 'Structure check, not a postcode oracle' draws a sharp boundary against tools that verify real addresses, so an agent can place it without opening the schema.

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 'structure check, not a postcode oracle' line is an explicit when-not rule, telling the agent this confirms format rather than deliverability. It stops short of naming an alternative tool or stating prerequisites (e.g., what to do for a country outside the 54), so the guidance is clear but incomplete.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.