Skip to main content
Glama

find_cities

Read-onlyIdempotent

Filter/rank cities across the dataset — e.g. cities in TX with open health-based violations, or cities with a specific contaminant. Returns ranked matches.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
stateNoOptional 2-letter state code.
contaminantNoOptional EPA contaminant code or name (use explain_contaminant to find a code).
minPopulationNo
healthBasedOnlyNo
openViolationsOnlyNoOnly cities with violations not returned to compliance.

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and idempotentHint=true, so the safety profile is clear. The description adds minimal extra behavioral context (returns ranked matches) beyond what annotations provide.

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?

The description is concise: two sentences that state the action and provide an example. It is front-loaded and efficient, though could include slightly more structure or detail.

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?

The tool has 6 optional parameters and no output schema. The description covers the high-level purpose and gives an example, but lacks details on ranking criteria, default ordering, pagination, and return fields, which would help an agent apply the tool correctly.

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 50% (3/6 parameters have descriptions). The tool description adds context through examples that guide parameter usage (e.g., health-based violations, contaminant). However, it does not fully compensate for undocumented parameters like minPopulation or healthBasedOnly.

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 clearly states the tool filters/ranks cities across the dataset with specific examples (e.g., cities in TX with open health-based violations). This distinguishes it from siblings like list_state_cities or search_cities which likely lack ranking/filtering capabilities.

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?

The description implies usage context through examples but does not explicitly state when to use this tool versus alternatives. No exclusions or when-not-to-use guidance are provided.

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.

TDQS

A3.7/5.0
Disambiguation3/5

Some tools have overlapping purposes: search and search_cities both find cities by name, and fetch and get_city_water both retrieve detailed records for a city. However, descriptions differentiate them (e.g., search returns an id, search_cities returns counts and URL), so an agent can often pick correctly, but confusion is possible.

Naming Consistency2/5

Tool names mix conventions: single-word verbs (fetch, search), verb_noun (compare_cities, find_cities), and noun_noun (coverage_stats). There is no consistent pattern, and similar tools have different naming styles (e.g., search vs search_cities).

Tool Count5/5

10 tools is well-suited for querying EPA tap water data. Each tool serves a distinct purpose within the domain, and the count is neither too few (limiting functionality) nor too many (overwhelming).

Completeness4/5

The tool surface covers key operations: searching cities, retrieving records, comparing, filtering, explaining contaminants, and coverage stats. Minor gaps exist (e.g., no way to search contaminants by partial name), but core workflows are supported.

Resources