Skip to main content
Glama

Hermes — Air Quality Intelligence

get_historical_aq

Get historical air quality data for a site or location, with health context.

Returns a 'narrative' with plain-English interpretation, WHO 24-hour guideline exceedance days, and guideline comparisons. Present the narrative to users first. Also returns 'data' and a per-site 'summary' (statistics are per monitor, never pooled across monitors).

Annual guidelines are compared only for windows of a year or more with at least 75% data capture. Daily and monthly rows carry 'n_hours' and 'partial'; partial days (under 18 hours) are excluded from exceedance counts. Times and days are UTC.

Args: start_date: Start date (ISO format, e.g. "2025-01-01"). end_date: End date (ISO format). A date includes that whole day, so a window ending today includes this morning's readings. location: Postcode, place name, or "lat,lon". Provide this or site_code. site_code: Direct site code. Provide this or location. pollutants: Optional filter, e.g. ["NO2", "PM2.5"]. frequency: "hourly", "daily", or "monthly" (default "daily").

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "get_historical_aq"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_dateYes
locationNo
frequencyNodaily
site_codeNo
pollutantsNo
start_dateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations provided, the description carries the full behavioral burden and does so thoroughly. It discloses the return structure, per-monitor summary behavior, annual guideline comparison thresholds, partial-day exclusion rules, UTC time handling, and that the narrative should be presented first.

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 description is front-loaded with the core purpose and return behavior, then structured into clear caveats and an Args section. It is appropriately sized for a six-parameter analytical tool, with no obvious 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?

Given the lack of annotations and output schema, the description is complete enough for correct invocation and interpretation. It explains both input semantics and important output caveats such as per-monitor statistics, partial-day exclusion, and annual guideline data-capture requirements.

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

Parameters5/5

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

Schema description coverage is 0%, but the description compensates by documenting every parameter in the Args section. It explains ISO date formats, end-date inclusiveness, location formats, the location/site_code alternative, pollutant examples, and allowed frequency values with the default.

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 clearly states a specific verb and resource: get historical air quality data for a site or location, with health context. The historical scope distinguishes it from get_current_aq, though it does not explicitly name alternate sibling tools such as trend_analysis or regulatory_stats.

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 the tool is for historical air quality retrieval and explains how to identify a site via location or site_code, plus optional pollutants and frequency. However, it does not explicitly state when to use this tool versus siblings like trend_analysis, regulatory_stats, or assess_location_aq, so guidance is adequate but incomplete.

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