Skip to main content
Glama

get_city_average

Retrieve city-wide aggregate AQI, PM2.5, and PM10 averages and maxima for Yerevan over a selectable 1–30 day lookback to summarize air quality.

Instructions

City-wide aggregate AQI, PM2.5, PM10 — averages and maxima — computed server-side via outStatistics.

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_city_average"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoDays back to aggregate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses that metrics are pre-aggregated server-side via outStatistics and that both averages and maxima are returned, but says nothing about permissions, result volume, or how missing sensor data is handled.

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?

A single dense sentence that front-loads the resource and the returned metrics with no filler. The trailing 'computed server-side via outStatistics' is partly implementation jargon, though it does convey that results arrive pre-aggregated.

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 one-parameter read tool the description covers what is returned, which is helpful given there is no output schema. However, it never resolves the 'city' scope — the schema has no city identifier, so it is unclear whether results cover one implicit city or all cities, which materially affects correct invocation.

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% for the single optional 'days' parameter (1–30, default 1), so the schema does the documentation work. The description adds no further meaning about the lookback window or what happens at the boundaries.

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 names a concrete resource and operation: city-wide aggregates of AQI, PM2.5, and PM10 with both averages and maxima. The 'city-wide' qualifier implicitly separates it from the device-level siblings (get_device_current, get_device_history), though no sibling is named explicitly.

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 only inferable from the scope word 'city-wide' — the agent can deduce this is the aggregate view rather than a per-device lookup. There is no explicit when-to-use statement, no named alternative (e.g. get_historical_trend for trends vs. this for summaries), and no prerequisites.

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