Skip to main content
Glama

Aqs Annual Summary

aqs_annual_summary
Read-onlyIdempotent

EPA AQS annual summary statistics for a pollutant and area, arithmetic mean, maximum, 98th/99th percentile, exceedance counts, observation completeness and the certification status behind each. This is what attainment and trend statements are built on. Sourced from the EPA Air Quality System. Requires an EPA AQS email + key.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "by": "state",
      "bdate": "2023-01-01",
      "edate": "2023-12-31",
      "param": "44201",
      "state": "37"
    },
    "name": "aqs_annual_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
byNoGeography: "state" (default), "county", "site", "cbsa", "box"
bboxNoFor by=box: "minLon,minLat,maxLon,maxLat"
cbsaNoFive-digit CBSA code
siteNoFour-digit site number
bdateYesStart date YYYY-MM-DD
edateYesEnd date YYYY-MM-DD, same calendar year as bdate
emailNoThe email the AQS key was issued to, if not folded into _apiKey
limitNoMax summary rows to return (default 200, max 2000)
paramYesPollutant parameter code(s), comma-separated, max 5, e.g. "44201"
stateNoTwo-digit state FIPS
countyNoThree-digit county FIPS
_apiKeyNoEPA AQS credential as "<email>:<key>", or just "<key>" with email= set. Register at https://aqs.epa.gov/data/api/signup?email=<your-email>

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / edate / description
      Previous value: -"End date YYYY-MM-DD — same calendar year as bdate"New value: +"End date YYYY-MM-DD, same calendar year as bdate"
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so safety is covered. The description adds real context beyond that: the upstream source is EPA AQS and an EPA AQS email + key is required, which an agent cannot derive from the annotations. It stops short of noting rate limits or that results are capped by the limit parameter.

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?

Three short sentences that front-load what the tool returns before adding provenance and auth. Minimal waste, though the 'attainment and trend statements' line is more persuasive framing than operational information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter, no-output-schema read tool, the description supplies the essential missing pieces: the upstream source, the credential requirement, and the set of metrics the rows contain, which serves as a stand-in for return-field documentation. Gaps remain around response shape, pagination behavior, and how many rows come 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 description coverage is 100%, so every one of the 12 parameters is already documented, including the credential format and the by/bbox geography switch. The description's 'pollutant and area' phrasing only echoes 'param' and 'by' without adding format, constraints, or interaction rules. 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?

The description names a specific verb and resource ('EPA AQS annual summary statistics for a pollutant and area') and enumerates the metrics returned (mean, max, 98th/99th percentile, exceedance counts, completeness, certification status). It implicitly differentiates from data-retrieval siblings like aqs_sample_data and aqs_monitors by being an annual aggregate, 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?

'This is what attainment and trend statements are built on' gestures at when a caller would want aggregated statistics rather than raw samples. However, there is no explicit when-to-use/when-not guidance, no mention of choosing this over aqs_sample_data, and no stated preconditions beyond the credential requirement.

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.