Skip to main content
Glama

Autocomplete a Nigerian postcode

autocomplete_postcode
Read-onlyIdempotent

Suggests the next segment of a partly typed Nigerian postcode while a user types, helping complete NIPOST codes before validation or lookup.

Instructions

Suggest the next segment of a partly typed Nigerian postcode. Free.

Use it while a user is still typing or only knows the start of their code. For a complete code, use validate_postcode, then lookup_postcode.

Input Schema

NameRequiredDescriptionDefault
partialYesThe start of a code, e.g. 'EK 01 A'.

Output Schema

NameRequiredDescriptionDefault
segmentYesThe segment being completed.
suggestionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.5
    • addedInput schema / properties / partial / maxLength
      Added value: +32
  2. First observedv0.2.4

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered. The description adds genuinely useful non-structured context — that the call is free — plus the correct call sequence for the complete-code path. It does not describe result-set size or partial-match behavior for non-existent prefixes, but that is largely covered by the output schema.

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?

Three short sentences, zero filler, and the identifying purpose is front-loaded before the routing advice. Every sentence earns its place.

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?

With one fully documented parameter, annotations covering safety, and an output schema handling return values, nothing an agent needs in order to select or invoke this tool is missing. Sibling routing is included for the ambiguous complete-code case.

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 100% and the schema itself supplies the example ('EK 01 A') and length bounds, so the description has little left to add. It conveys the 'partly typed / prefix' semantic through the usage sentence, which is a small value-add over 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?

States a specific verb (suggest/autocomplete), a specific resource (Nigerian postcode), and the exact scope (next segment of a partly typed code). It is immediately distinguishable from validate_postcode and lookup_postcode, which handle complete codes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly names the triggering condition (user still typing, or only the start of the code is known) and explicitly routes the complete-code case to validate_postcode then lookup_postcode. Both when-to-use and the alternative path are stated.

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