Skip to main content
Glama

List states, counties and cities

list_locations
Read-onlyIdempotent

States, counties, and cities, with the numeric ids search filters accept. level is "state", "county" (with stateId), or "city" (with stateId and countyId). Names and abbreviations are also accepted on search filters. Does not use credits.

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": "list_locations"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNoDefaults to "state".
stateIdNoRequired for level "county" and "city".
countyIdNoRequired for level "city".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the added value is the credit-cost disclosure ('Does not use credits'), which is meaningful in an API whose siblings revolve around credits and exports. The hierarchical gating of level against stateId/countyId adds behavioral context beyond the annotations. Return format is not described, but with no output schema that is a minor omission rather than a contradiction.

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?

Four short sentences, front-loaded with the resource and its ids, then the hierarchy rules, then a cost note — nothing redundant. The opening fragment ('States, counties, and cities, with the numeric ids search filters accept.') is slightly telegraphic but still parses cleanly.

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, read-only reference lookup with full schema coverage and no output schema, the description supplies enough: what entities are returned, that ids are numeric and filter-ready, and that the call is free. What's missing is a hint at the returned fields (name, abbreviation, id) — implied only obliquely by the mention of abbreviations.

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 description coverage is 100%: the schema already states the default for level and the stateId/countyId requirements per level. The description largely restates those constraints rather than adding new meaning such as id formats, expected string vs. integer behavior, or how unknown levels are handled. Baseline 3 is appropriate given the schema does the heavy lifting.

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?

The description identifies the resource precisely (states, counties, cities) and its payload value (numeric ids consumed by search filters), which distinguishes it from the list_* siblings that return permits, alerts, or exports. The verb is only implied by the tool name and the opening is a noun fragment rather than a statement of action, so it stops short of a 5.

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 conveys the operative context: use this to obtain the numeric ids that search filters require, and level selection drives the hierarchy (county needs stateId, city needs both). It also notes that names and abbreviations are accepted directly by search filters, which is an implicit 'you may not need this call' signal. It doesn't name an explicit alternative tool or state exclusions, keeping it below 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