Skip to main content
Glama

List places in an area

list_locations
Read-onlyIdempotent

Lists every state (level 1), every county in a state (level 2, parent_id = state id) or every city in a county (level 3, parent_id = county id). Unlike find_location, the list is complete.

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": {
      "country": "<country>",
      "level": "<level>"
    },
    "name": "list_locations"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelYes
countryYesISO alpha-2 code.
parent_idNoState id for level 2, county id for level 3.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false, and destructiveHint=false, so the safety profile is covered. The description adds the useful completeness guarantee versus find_location, but does not mention ordering, pagination, or return shape.

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?

Two dense sentences with no wasted wording; the hierarchy mapping is front-loaded and the find_location contrast follows immediately.

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?

For a three-parameter list tool with no output schema, the description covers the required inputs and geographic scope adequately. It could say more about result ordering or size, but nothing essential for correct invocation is missing.

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 67% and the description meaningfully explains that level 1 means states, level 2 means counties within a state, and level 3 means cities within a county, including the parent_id relationship. It largely repeats the schema's parent_id documentation but adds clearer level semantics.

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 states a specific verb and resource ("Lists every state/county/city") and maps each level to a geographic entity, making the tool clearly distinct from find_location.

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?

It explicitly explains which level and parent_id combination to use for states, counties, and cities, and names find_location as the alternative while noting that this list is complete.

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