Skip to main content
Glama

get_worst_locations

Identify Yerevan air quality sensor locations ranked by highest average AQI over a recent time window to prioritize interventions or alerts.

Instructions

Top N most polluted sensors in a recent time window, ranked by average AQI.

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

Input Schema

NameRequiredDescriptionDefault
hoursNoHours back to consider
limitNoNumber of results

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the behavioral burden. It usefully discloses the ranking metric ('average AQI') and time scope, but omits return shape, pagination, missing-sensor handling, and any safety or freshness caveats. For a simple read query this is minimally adequate rather than rich.

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 definition is a single front-loaded sentence with no filler. Every phrase contributes to scope or ranking, making it appropriately concise.

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 two-parameter read tool with full schema coverage, the description states what is returned and the time scope. However, with no annotations and no output schema, it omits sibling-routing guidance and behavioral edge cases, leaving it adequate but incomplete.

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%, with both hours and limit fully documented with defaults and ranges. The description's 'Top N' and 'recent time window' only restate limit and hours at a high level, adding no meaningful semantics beyond the schema.

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 single sentence names a specific ranked resource: top N polluted sensors in a recent window, ranked by average AQI. This is clearer than the tool name alone, which says 'locations' while the description clarifies 'sensors'. It does not explicitly distinguish itself from siblings such as get_devices_by_aqi or get_city_average, so it falls 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 Guidelines2/5

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

The description gives no when-to-use, when-not-to-use, or named alternative guidance. The only implied usage comes from 'recent time window,' leaving the agent to infer when this should be chosen over sibling tools.

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