Skip to main content
Glama

get_historical_trend

Retrieve daily average air quality trends from the 2024–2025 archive, optionally filtered by device, with a configurable number of days.

Instructions

Daily averages from the 2024–2025 archive. Uses truncated field names (pm2_5con_6 = NowCast AQI, pm10concma = PM10 µg/m³).

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

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of days to return
deviceCodeNoFilter to a specific device (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations the description carries the full burden, and it discloses two real behavioral traits: the data is limited to the 2024–2025 archive and returned records are daily averages, plus the truncated field-name legend. It omits ordering/direction (are the 'limit' days the most recent or the earliest?) and any note on gaps or missing station data.

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?

Two sentences, front-loaded with the data scope, followed by a compact key for the truncated field names. Nothing is wasted and the field legend earns its place because no output schema exists.

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?

With no annotations and no output schema, the description must cover behavior and return values itself; it decodes two fields but says nothing about the rest of the record, units/aggregation method beyond PM10 µg/m³, or result ordering. Adequate to call the tool, incomplete for interpreting what comes back.

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 100%, so limit and deviceCode are already fully documented in the schema. The description adds no additional meaning about what 'limit' counts or how deviceCode filtering interacts with daily aggregation, so the baseline 3 applies.

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?

States a specific resource and scope: daily averages drawn from the 2024–2025 archive, which an agent can distinguish from 'current' data tools. It never names or contrasts with siblings such as get_device_history or get_city_average, so the differentiator is only implicit.

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 archive window implies 'use this for historical daily aggregates', but there is no explicit when-to-use, when-not, or alternative routing. An agent choosing between this and get_device_history or get_city_average gets no help.

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