Skip to main content
Glama

Aqs Sample Data

aqs_sample_data
Read-onlyIdempotent

Raw measured air-pollutant sample values from EPA AQS for a date range, the regulatory record, by site, county, state or CBSA. AUTHORITATIVE for "what was the actual ozone/PM2.5/lead concentration here on these dates"; this is the quality-assured archive, not the provisional real-time AQI. 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": "2024-05-01",
      "edate": "2024-05-01",
      "param": "44201",
      "state": "37"
    },
    "name": "aqs_sample_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
byNoGeography: "state" (default), "county", "site", "cbsa", "box"
bboxNoFor by=box: "minLon,minLat,maxLon,maxLat"
cbsaNoFive-digit CBSA code, required for by=cbsa
siteNoFour-digit site number, required for by=site
bdateYesStart date YYYY-MM-DD (converted to the AQS YYYYMMDD form for you)
edateYesEnd date YYYY-MM-DD, must be in the SAME calendar year as bdate
emailNoThe email the AQS key was issued to, if not folded into _apiKey
limitNoMax sample rows to return (default 200, max 2000)
paramYesPollutant parameter code(s), comma-separated, max 5. e.g. "44201" (ozone), "88101" (PM2.5), "42401" (SO2), "14129" (lead)
stateNoTwo-digit state FIPS, required for by=state/county/site
countyNoThree-digit county FIPS, required for by=county/site
_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. Changed5 schema fields changed
    • changedInput schema / properties / cbsa / description
      Previous value: -"Five-digit CBSA code — required for by=cbsa"New value: +"Five-digit CBSA code, required for by=cbsa"
    • changedInput schema / properties / county / description
      Previous value: -"Three-digit county FIPS — required for by=county/site"New value: +"Three-digit county FIPS, required for by=county/site"
    • changedInput schema / properties / edate / description
      Previous value: -"End date YYYY-MM-DD — must be in the SAME calendar year as bdate"New value: +"End date YYYY-MM-DD, must be in the SAME calendar year as bdate"
    • changedInput schema / properties / site / description
      Previous value: -"Four-digit site number — required for by=site"New value: +"Four-digit site number, required for by=site"
    • changedInput schema / properties / state / description
      Previous value: -"Two-digit state FIPS — required for by=state/county/site"New value: +"Two-digit state FIPS, required for by=state/county/site"
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds real value beyond that: the data is quality-assured regulatory archive rather than provisional, the upstream source is EPA AQS, and an EPA AQS email + key credential is required before the call will succeed. It stops short of noting row limits or pagination behavior.

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 sentences, front-loaded with the resource and scope, then the authoritative-use case, then the credential requirement. Each sentence earns its place; the nested quotation in the middle sentence is slightly dense but conveys a concrete disambiguation that would otherwise cost a follow-up call.

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 tool with no output schema, the description covers source, authority level, scope and authentication, while the schema carries all parameter detail. Reasonable gaps remain — no mention of the 200/2000 row limit, return shape or truncation behavior — but nothing essential to calling it correctly is missing.

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 parameter (including the by= geography selector, FIPS codes, pollutant codes and the _apiKey format) is already documented in the schema. The description restates the geographic dimensions but adds no new syntax, defaults or constraints beyond what the schema provides, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — "Raw measured air-pollutant sample values from EPA AQS" — and pins the scope to a date range and a geographic level (site, county, state, CBSA). The contrast with the "provisional real-time AQI" clearly separates it from AQI-style siblings and from aggregated siblings like aqs_annual_summary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Gives an explicit when-to-use test: authoritative answers to "what was the actual ozone/PM2.5/lead concentration here on these dates," and explicitly steers away from provisional real-time AQI. It does not name or exclude the aggregated sibling (aqs_annual_summary), so the routing guidance is clear but not exhaustive.

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.