Skip to main content
Glama

Compare two cities

compare_cities
Read-onlyIdempotent

Side-by-side historical records for two US cities with the difference in Clean Air Score and PM2.5. Warnings list any copied record. Each city is either an own_record (scored from its own data) or a copied_record (the full record of the nearest scored city, named in source_city, source_state and source_distance_miles). A copied_record describes the source city, not measurements taken in the named city. Values are historical annual data, not the current AQI.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
city_aYes
city_bYes
state_aYesTwo-letter state code.
state_bYesTwo-letter state code.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description goes well beyond them: it discloses that warnings flag copied records, explains the own_record vs copied_record distinction, names the provenance fields (source_city, source_state, source_distance_miles), and states the critical gotcha that a copied_record describes the source city rather than measurements taken in the named city.

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?

The output is front-loaded with the core purpose, then adds the warning behavior, the copied-record semantics, and the historical-data caveat in descending order of importance. Every sentence carries information an agent cannot get from the schema or annotations; there is no filler.

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?

With no output schema, the description carries the full burden and largely succeeds: it anticipates the key output fields (difference in Clean Air Score and PM2.5, warnings, own_record/copied_record, provenance fields) and the main interpretation trap. An agent has enough to call it and interpret the result correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 50%: state_a and state_b are documented as two-letter codes, but city_a and city_b have no schema description at all. The description never compensates — it does not say whether city names must be exact strings, what format is expected, or how the two city parameters relate, so the coverage gap remains.

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 first sentence gives a specific verb and resource: side-by-side historical records for two US cities, including the exact metrics compared (Clean Air Score and PM2.5). The comparison scope inherently sets it apart from get_city_air_quality and rank_cities, but those siblings are never named, so routing relies on inference.

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 by the verb 'compare' and the two-city input, and the closing caveat ('historical annual data, not the current AQI') warns against one misuse case. However, there is no explicit statement of when to pick this over the single-city or ranking tools, nor of prerequisites or exclusions.

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