Skip to main content
Glama

mechacut

address_parse

One line of postal address in; components out, with NO role guessing we cannot prove: country resolved from an argument first, then a named country, then the postal grammar scan (country_source says which); postal validated against the 50 shipped grammars; when a code fits many (75011 fits 22 grammars) the verdict is AMBIGUOUS_POSTAL with the sorted candidates — pass country as an argument and it becomes PARSED with provenance 'argument'. The rest is lines, in order. Ceilings 6 parts / 500 chars. Street vs city naming is NOT guessed: that is a different, more honest tool. 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": {
      "text": "<text>"
    },
    "name": "address_parse"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
countryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations at all, the description still discloses the country resolution precedence order and `country_source` provenance, validation against 50 shipped grammars, the exact AMBIGUOUS_POSTAL versus PARSED outcome semantics, and hard ceilings (6 parts / 500 chars). It omits error behaviour and what happens for unparseable input, so it is strong but not complete for an unannotated tool.

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 with the core input/output contract, then the disambiguation rules. Some clutter: all-caps emphasis mid-sentence, the parenthetical trivia about 75011 fitting 22 grammars, an editorial aside ('a different, more honest tool') and a dangling 'Free.' These are characterful but not all load-bearing.

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

Completeness4/5

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

No output schema and no annotations, yet the description still sketches the return shape (components in order, country_source, verdict plus sorted candidates). Given a simple 2-parameter parser, that is nearly enough; only failure modes and component naming/ordering edge cases are left implicit.

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 coverage is 0%, so the description carries the burden. It explains `country`'s effect thoroughly (argument wins, provenance becomes 'argument') and `text` as the single address line, but never states the accepted format for `country` (ISO code vs name vs free text), leaving a real ambiguity for the highest-leverage 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?

Uses a concrete verb and resource ('one line of postal address in; components out') and draws an explicit boundary against a different tool that does guess street vs city naming. An agent can tell what this returns, and roughly what it deliberately refuses to do, 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?

Gives an actionable conditional workflow: if the verdict comes back AMBIGUOUS_POSTAL, re-call with a `country` argument to force PARSED. That is clear use guidance. It stops short of an explicit when-not-to-use statement beyond the street-vs-city boundary remark.

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.