Skip to main content
Glama

Resolve a place name to admin areas

resolve_place
Read-onlyIdempotent

Resolve a place name to matching first-level administrative areas using English or local-script names and aliases, optionally filtered by country, and return ranked candidates with representative points.

Instructions

Find first-level administrative areas matching a place name. Accepts English names, local-script names and common aliases, optionally followed by ', '. Returns ranked candidates with a representative point.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
limitNo
countryNoISO 3166-1 alpha-2/alpha-3 code or English name

Output Schema

NameRequiredDescriptionDefault
noteNo
queryYes
sourceYes
candidatesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: inputs may be English, local-script, or alias forms, and may carry an optional ', <country>' suffix, which is exactly the kind of input tolerance an agent cannot infer from 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?

Three tight sentences, front-loaded with the core action, then input formats, then output. The closing sentence about ranked candidates and a representative point partially restates what the output schema already provides, so it is slightly redundant but still a useful orientation.

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?

For a simple three-parameter lookup with an output schema and full annotations, the essentials are present. Gaps remain around match semantics (exact vs fuzzy vs prefix), how candidates are ranked, what an empty result means, and how this differs from find_places.

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 only 33%, and the description partially compensates by explaining accepted name forms and the inline ', <country>' convention, which maps to the name and country parameters. The limit parameter (default 5, max 10) is never mentioned in either place, so ranking/truncation semantics remain opaque.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Find first-level administrative areas matching a place name.' That is far more precise than the title alone, telling the agent the output granularity is admin level 1 rather than a point or bbox. It never names or rules out the sibling find_places, so the agent gets no explicit differentiation.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: it is clear this is the tool for turning a place string into admin areas, but there is no 'use this when X, use find_places when Y' guidance and no note about when the result would be empty or unreliable. With a sibling like find_places present, an explicit routing sentence would materially help.

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

Deploy Server

Other Tools