Skip to main content
Glama

AgentStall: Africa and global data for agents

State and province codes: ISO 3166-2 subdivision codes, names and types (200 countries, 5,046 codes, incl. all of Africa and India)

subdivision_codes_lookup
Read-onlyIdempotent

State and province codes (ISO 3166-2): every state, province, region, county and district code with its name, type and parent for 200 countries (5,046 codes), incl. Nigeria's 36 states and FCT, Kenya's 47 counties, India's states and union territories and all of Africa. List a country, look up codes (NG-LA) or find a code by name (Lagos). Source: Debian iso-codes (LGPL). For forms, tax, shipping and KYC agents. Returns JSON with asOf, count, results, summary. Read-only; invalid input is rejected before any charge. Price: $0.001 USDC per call (x402, Base mainnet), paid only when the call succeeds.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "subdivision_codes_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoOptional: 'true' returns only top-level subdivisions (no parent)
codeNoISO 3166-2 codes, comma-separated, up to 100, e.g. NG-LA,KE-30,IN-MH
nameNoSubdivision name to find its code (accents ignored; exact matches first). Give at least one of country, code or name
countryNo2-letter ISO country codes, comma-separated, up to 60: lists their subdivisions

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses the data source and license (Debian iso-codes, LGPL), the response envelope (asOf, count, results, summary), failure semantics ('invalid input is rejected before any charge'), and the exact billing model ($0.001 USDC per call via x402, charged only on success). Pricing and charge-on-success behavior are things an agent cannot infer from annotations or schema and materially affect whether it should call.

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?

Despite being dense, it is front-loaded with identity and coverage before modes, source, audience, return shape, and pricing. Some enumerations (Nigeria's 36 states, Kenya's 47 counties, India's UTs) are marketing weight rather than decision-relevant, and the bolded coverage stats make it longer than strictly needed, but every remaining sentence carries information.

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?

With no output schema, the description compensates by naming the response fields and stating the source of truth and refresh indicator (asOf). It is nearly complete for a lookup tool; the only residual gap is that it doesn't say what a single result object contains (code, name, type, parent), which matters since 'top' filters on parent presence.

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%, so each parameter is already documented, including the comma-separated syntax and limits. The description restates the country/code/name modes with examples but adds no meaning beyond the schema's own descriptions, and the 'top' parameter is never mentioned. Baseline 3 is appropriate.

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 names a specific resource (ISO 3166-2 subdivision codes) and enumerates the three access modes verbatim: list a country, look up codes like NG-LA, or find a code by name like Lagos. Coverage figures (200 countries, 5,046 codes) and the included regions pin the scope tightly enough that an agent can separate it from siblings like country_info_lookup or address_format_lookup.

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?

It gives concrete usage contexts ('For forms, tax, shipping and KYC agents') and shows the three input patterns by example, which is stronger than most lookup tools. It stops short of naming a competing tool or stating when NOT to use it (e.g., versus a broader country-info tool), so it lands at 4 rather than 5.

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.

Resources