Skip to main content
Glama

Suggest boundaries (autocomplete)

suggest_boundaries
Read-onlyIdempotent

Autocomplete for a search box: the best-known boundaries whose name starts with what has been typed so far, in any language and without accents or case ("munc" finds München, "new y" New York). Answered from our own index in milliseconds with no upstream call, so call it on every keystroke. Free and public. Returns up to limit candidates, most prominent first (countries and states, then by population), each with id, name, type (the division's level: country, region, county, localadmin, locality, macrohood, neighborhood), country_code, region (ISO 3166-2), population, area_km2 and centroid, but no polygon: pass the id to get_boundary. It matches the start of a name only. For a complete name, a postcode, an address, a filter by kind or admin_level, or parents in the result, use search_boundaries.

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": {
      "q": "<q>"
    },
    "name": "suggest_boundaries"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesWhat the user has typed so far, e.g. "berl". One character is enough.
limitNoAt most this many suggestions (1–20, default 8).
countryNoLimit to countries: ISO 3166-1 alpha-2, comma-separated (e.g. US or de,at,ch).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, open-world and non-destructive, so the safety profile is covered; the description goes further by disclosing no upstream call, millisecond latency, free/public access, and that matching is accent- and case-folded prefix-only. It also states the result ordering rule (countries and states first, then population) and, importantly, that no polygon is returned and the id must be passed to get_boundary. Nothing contradicts the annotations.

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 purpose, then cadence, then return shape, then the alternative – a sensible order. It is a dense run-on paragraph with stacked parentheticals, and the long field enumeration could be tightened, but essentially every sentence carries information an agent needs.

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?

There is no output schema, so describing the returned fields (id, name, type, country_code, region, population, area_km2, centroid, and the absence of geometry) is essential and is done thoroughly. Combined with the ordering rule and the handoff to get_boundary, an agent has everything needed to call this and use the result.

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?

Schema coverage is 100%, so q and limit are already documented and the baseline is 3. The description adds genuine meaning beyond the schema by spelling out that q is a prefix, not a full name, that one character suffices, and that diacritics/case are ignored ('munc' finds München). The country filter is left entirely to the schema, which keeps this from a 5.

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 and resource: autocomplete suggestions of boundary names matching a typed prefix. The opening clause 'Autocomplete for a search box' plus the prefix-matching rule and the displayed field set make the tool's scope immediately distinguishable from search_boundaries, which is named explicitly as the non-overlapping alternative.

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?

Gives a concrete invocation cadence ('call it on every keystroke'), which is unusually actionable. It also enumerates the exact conditions that route the agent elsewhere – complete name, postcode, address, filter by kind or admin_level, parents in the result – and names search_boundaries as the destination, so no inference is required.

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