openaq-mcp-server
Server Details
Find air-quality stations and read pollutant observations from government monitors via OpenAQ v3.
Glama couldn't complete the latest health check. If this server requires authentication, missing or expired test credentials may be the cause. A test profile lets Glama authenticate for health checks and discover tools; it is separate from your personal connections.
If you are the author, claim ownership, then add or update a test profile under Admin → Test Profile.
- Status
- Unhealthy
- Uptime
- 73.7% over 62 days
- Last Tested
- Transport
- Streamable HTTP
- URL
- Repository
- cyanheads/openaq-mcp-server
- GitHub Stars
- 2
- Server Listing
- @cyanheads/openaq-mcp-server
TDQS
Scored across 7 tools
Each tool targets a distinct concern: catalog lookups, station search, current readings, historical measurements, and SQL over staged data. Even the get_readings/get_measurements pair is clearly separated by current vs. historical scope. No two tools are likely to be confused.
Most tools follow a clear openaq_verb_noun pattern (openaq_find_locations, openaq_get_measurements, openaq_list_parameters). The two dataframe tools reverse this to openaq_dataframe_describe/query, creating a minor but noticeable inconsistency.
Seven tools is well-scoped for an air-quality data access server. Each tool serves a necessary step in the workflow: discover catalogs, find stations, fetch current or historical data, and analyze large result sets via SQL.
The surface covers the full read-only data lifecycle: parameter/country catalogs, station discovery, current observations, historical time series, and large-data analysis. There are no obvious dead ends or missing core operations for the domain.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
4 tool updates
- Changed
openaq_find_locations14 fields changed- removed
Output schema / properties / locations / items / properties / coordinates / additionalPropertiesRemoved value: -false - added
Output schema / properties / locations / items / properties / coordinates / anyOfAdded value: +[ + { + "additionalProperties": false, + "properties": { + "latitude": { + "description": "Station latitude (decimal degrees)", + "type": "number" + }, + "longitude": { + "description": "Station longitude (decimal degrees)", + "type": "number" + } + }, + "required": [ + "latitude", + "longitude" + ], + "type": "object" + }, + { + "type": "null" + } +] - changed
Output schema / properties / locations / items / properties / coordinates / descriptionPrevious value: -"Station location"New value: +"Station location. Null when OpenAQ lists no latitude or no longitude." - removed
Output schema / properties / locations / items / properties / coordinates / propertiesRemoved value: -{ - "latitude": { - "description": "Station latitude (decimal degrees)", - "type": "number" - }, - "longitude": { - "description": "Station longitude (decimal degrees)", - "type": "number" - } -} - removed
Output schema / properties / locations / items / properties / coordinates / requiredRemoved value: -[ - "latitude", - "longitude" -] - removed
Output schema / properties / locations / items / properties / coordinates / typeRemoved value: -"object" - removed
Output schema / properties / locations / items / properties / country / additionalPropertiesRemoved value: -false - added
Output schema / properties / locations / items / properties / country / anyOfAdded value: +[ + { + "additionalProperties": false, + "properties": { + "code": { + "description": "OpenAQ country code: ISO 3166-1 alpha-2, or \"-99\" where OpenAQ lists none", + "type": "string" + }, + "name": { + "description": "Country name", + "type": "string" + } + }, + "required": [ + "code", + "name" + ], + "type": "object" + }, + { + "type": "null" + } +] - changed
Output schema / properties / locations / items / properties / country / descriptionPrevious value: -"Country the station is in"New value: +"Country the station is in. Null when OpenAQ lists none." - removed
Output schema / properties / locations / items / properties / country / propertiesRemoved value: -{ - "code": { - "description": "OpenAQ country code: ISO 3166-1 alpha-2, or \"-99\" where OpenAQ lists none", - "type": "string" - }, - "name": { - "description": "Country name", - "type": "string" - } -} - removed
Output schema / properties / locations / items / properties / country / requiredRemoved value: -[ - "code", - "name" -] - removed
Output schema / properties / locations / items / properties / country / typeRemoved value: -"object" - changed
Output schema / properties / locations / items / properties / provider / descriptionPrevious value: -"Data provider / network (e.g. \"AirNow\", \"OpenAQ LCS\")"New value: +"Data provider / network (e.g. \"AirNow\", \"OpenAQ LCS\"). Null when OpenAQ lists none." - changed
Output schema / properties / locations / items / properties / provider / typePrevious value: -"string"New value: +[ + "string", + "null" +]
- Changed
openaq_get_measurements17 fields changed- changed
Input schema / properties / aggregation / descriptionPrevious value: -"Time bucketing. \"raw\" = every reported value (often hourly at source). \"hourly\"/\"daily\" = server-side rollups with a statistical summary per bucket. Use \"daily\" for multi-month trends to keep the series small; \"raw\" for fine-grained recent analysis."New value: +"Time bucketing. \"raw\" = every reported value (often hourly at source). \"hourly\"/\"daily\" = server-side rollups with a statistical summary per bucket; an hour is labeled by the time it ends, and a day is the station's local calendar day. Use \"daily\" for multi-month trends to keep the series small; \"raw\" for fine-grained recent analysis." - changed
Input schema / properties / datetimeFrom / descriptionPrevious value: -"Start of the range, inclusive. Date \"YYYY-MM-DD\" (opens at 00:00:00Z that day) or full UTC \"YYYY-MM-DDTHH:MM:SSZ\". Omit to get the most recent values."New value: +"Start of the range, inclusive. A date \"YYYY-MM-DD\" opens at local midnight of that day in the station's timezone (UTC midnight when OpenAQ lists none); a full UTC \"YYYY-MM-DDTHH:MM:SSZ\" is sent as is. Omit to start from the sensor's earliest data — the series runs oldest first, so on a long-running station an open start fills the row cap with its oldest values; set datetimeFrom to reach recent ones. effectiveRange echoes the instant sent." - changed
Input schema / properties / datetimeTo / descriptionPrevious value: -"End of the range, inclusive. Date \"YYYY-MM-DD\" covers that whole day (closes at 23:59:59Z) or full UTC \"YYYY-MM-DDTHH:MM:SSZ\". Must land after datetimeFrom — the two forms mix freely, so \"2026-06-25\" to \"2026-06-25\" is a valid one-day range. Omit for \"up to now\"."New value: +"End of the range, inclusive. A date \"YYYY-MM-DD\" covers that whole station-local day, closing at the next local midnight, so a DST day spans 23 or 25 hours; a full UTC \"YYYY-MM-DDTHH:MM:SSZ\" is sent as is. Must land after datetimeFrom — the two forms mix freely, so \"2026-06-25\" to \"2026-06-25\" is a valid one-day range. Omit for \"up to now\". effectiveRange echoes the instant sent." - changed
Output schema / anyOfPrevious value: -[ - { - "not": { - "required": [ - "error" - ] - }, - "required": [ - "location", - "parameter", - "sensorId", - "aggregation", - "series", - "rowCount", - "pulledCount", - "pullComplete", - "totalCount" - ] - }, - { - "required": [ - "error" - ] - } -]New value: +[ + { + "not": { + "required": [ + "error" + ] + }, + "required": [ + "location", + "parameter", + "sensorId", + "aggregation", + "series", + "rowCount", + "pulledCount", + "pullComplete", + "totalCount", + "effectiveRange" + ] + }, + { + "required": [ + "error" + ] + } +] - added
Output schema / properties / effectiveRangeAdded value: +{ + "additionalProperties": false, + "description": "The range sent to OpenAQ as UTC instants — date-only bounds expanded to the station's local day.", + "properties": { + "datetimeFrom": { + "description": "Lower bound sent to OpenAQ, UTC. Null when datetimeFrom was omitted.", + "type": [ + "string", + "null" + ] + }, + "datetimeTo": { + "description": "Upper bound sent to OpenAQ, UTC. Null when datetimeTo was omitted.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "datetimeFrom", + "datetimeTo" + ], + "type": "object" +} - changed
Output schema / properties / error / properties / data / properties / reason / descriptionPrevious value: -"Machine-readable failure mode. Declared by this tool: `location_not_found`: The locationId does not exist. `parameter_not_at_location`: No sensor at the station measures parametersId (often the wrong unit variant was chosen). `no_data_for_range`: The sensor has no measurements in the requested date range. `invalid_date_range`: The range is empty — once both bounds are expanded to full UTC timestamps, datetimeTo does not land after datetimeFrom. `canvas_not_found`: The supplied canvas_id is unknown or has expired, so the series cannot be staged onto it. `upstream_error`: OpenAQ returned 5xx or an unreadable body on every retry. `rate_limited`: OpenAQ returned 429 — the request budget for this key is exhausted. `upstream_timeout`: OpenAQ did not respond within the request timeout on every retry. `invalid_api_key`: OpenAQ returned 401 — the configured OPENAQ_API_KEY is missing, invalid, or revoked. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `location_not_found`: The locationId does not exist. `parameter_not_at_location`: No sensor at the station measures parametersId (often the wrong unit variant was chosen). `no_data_for_range`: The sensor has no measurements in the requested date range. `invalid_date_range`: The range is empty — once date-only bounds are expanded to the station's local day, datetimeTo does not land after datetimeFrom. `canvas_not_found`: The supplied canvas_id is unknown or has expired, so the series cannot be staged onto it. `upstream_error`: OpenAQ returned 5xx or an unreadable body on every retry. `rate_limited`: OpenAQ returned 429 — the request budget for this key is exhausted. `upstream_timeout`: OpenAQ did not respond within the request timeout on every retry. `invalid_api_key`: OpenAQ returned 401 — the configured OPENAQ_API_KEY is missing, invalid, or revoked. Other values are possible when a failure originates below the handler." - added
Output schema / properties / gapCountAdded value: +{ + "description": "Missing intervals inside an hourly or daily series — a span between buckets that do not touch, or a bucket with a null value, merged where contiguous — counted over every pulled row, not only the preview. 0 when nothing is missing; absent for raw, whose rows follow no fixed cadence.", + "type": "number" +} - added
Output schema / properties / gapsAdded value: +{ + "description": "The first 20 missing intervals, oldest first. Omitted when gapCount is 0.", + "items": { + "additionalProperties": false, + "description": "One missing interval", + "properties": { + "datetimeFrom": { + "description": "Start of the missing interval, UTC", + "type": "string" + }, + "datetimeTo": { + "description": "End of the missing interval, UTC", + "type": "string" + } + }, + "required": [ + "datetimeFrom", + "datetimeTo" + ], + "type": "object" + }, + "type": "array" +} - added
Output schema / properties / location / properties / providerAdded value: +{ + "description": "Network that operates the station — cite it alongside OpenAQ. Null when OpenAQ lists none.", + "type": [ + "string", + "null" + ] +} - added
Output schema / properties / location / properties / providerIdAdded value: +{ + "description": "Provider id, usable as providersId in openaq_find_locations. Null when OpenAQ lists none.", + "type": [ + "number", + "null" + ] +} - added
Output schema / properties / location / properties / timezoneAdded value: +{ + "description": "IANA timezone of the station (e.g. \"America/Los_Angeles\"). Daily buckets and date-only bounds follow its calendar days. Null when OpenAQ lists none.", + "type": [ + "string", + "null" + ] +} - changed
Output schema / properties / location / requiredPrevious value: -[ - "id", - "name" -]New value: +[ + "id", + "name", + "provider", + "providerId", + "timezone" +] - changed
Output schema / properties / notice / descriptionPrevious value: -"What limited this response or where the rest of it lives — the row cap, a failed page, DataCanvas being unavailable, or the canvas table the series was staged on and the tools that read it."New value: +"What limited this response or where the rest of it lives — the row cap, a failed page, a station with no timezone, an edge bucket clipped by the range, missing intervals, DataCanvas being unavailable, or the canvas table the series was staged on and the tools that read it." - changed
Output schema / properties / pullComplete / descriptionPrevious value: -"True when the pager reached the end of the requested range, so pulledCount is the whole series for it. False when the 5000-row cap or a failed page stopped the pull early — the rows past that point are in neither this response nor the canvas table, and the notice says how to reach them."New value: +"True when pulledCount is the whole series for the requested range. False when the 5000-row cap or a failed page stopped the pull early — the rows past that point are in neither this response nor the canvas table, and the notice says how to reach them." - changed
Output schema / properties / pulledCount / descriptionPrevious value: -"Rows pulled from OpenAQ — the canvas table's row count when canvasId is present. Equals rowCount when the whole series fit inline; larger when series is a preview."New value: +"Rows pulled from OpenAQ, at most 5000 — the canvas table's row count when canvasId is present. Equals rowCount when the whole series fit inline; larger when series is a preview." - changed
Output schema / properties / series / descriptionPrevious value: -"The (possibly previewed) series, newest or oldest first per the API. Every row here is also rendered in the text output. When truncated, this is a preview of pulledCount rows — query canvasId for the rest."New value: +"The (possibly previewed) series in the order OpenAQ returns it (oldest first). An hourly/daily series either skips a missing bucket or returns it with a null value — gapCount and gaps report both. Every row here is also rendered in the text output. When truncated, this is a preview of pulledCount rows — query canvasId for the rest." - changed
Output schema / properties / series / items / properties / percentComplete / descriptionPrevious value: -"Coverage of the bucket (0–100); low values flag gappy data"New value: +"Coverage of the bucket as OpenAQ reports it — observed readings as a percentage of expected ones. Low values flag gappy data. Usually 0–100, but it exceeds 100 when a bucket holds more readings than expected, e.g. 200 on the hour a DST fall-back repeats"
- Changed
openaq_get_readings10 fields changed- removed
Output schema / properties / location / properties / coordinates / additionalPropertiesRemoved value: -false - added
Output schema / properties / location / properties / coordinates / anyOfAdded value: +[ + { + "additionalProperties": false, + "properties": { + "latitude": { + "description": "Station latitude (decimal degrees)", + "type": "number" + }, + "longitude": { + "description": "Station longitude (decimal degrees)", + "type": "number" + } + }, + "required": [ + "latitude", + "longitude" + ], + "type": "object" + }, + { + "type": "null" + } +] - changed
Output schema / properties / location / properties / coordinates / descriptionPrevious value: -"Station coordinates"New value: +"Station coordinates. Null when OpenAQ lists no latitude or no longitude." - removed
Output schema / properties / location / properties / coordinates / propertiesRemoved value: -{ - "latitude": { - "description": "Station latitude (decimal degrees)", - "type": "number" - }, - "longitude": { - "description": "Station longitude (decimal degrees)", - "type": "number" - } -} - removed
Output schema / properties / location / properties / coordinates / requiredRemoved value: -[ - "latitude", - "longitude" -] - removed
Output schema / properties / location / properties / coordinates / typeRemoved value: -"object" - added
Output schema / properties / location / properties / providerAdded value: +{ + "description": "Network that operates the station (e.g. \"AirNow\") — cite it alongside OpenAQ. Null when OpenAQ lists none.", + "type": [ + "string", + "null" + ] +} - added
Output schema / properties / location / properties / providerIdAdded value: +{ + "description": "Provider id, usable as providersId in openaq_find_locations. Null when OpenAQ lists none.", + "type": [ + "number", + "null" + ] +} - changed
Output schema / properties / location / requiredPrevious value: -[ - "id", - "name", - "coordinates", - "timezone", - "distanceMeters", - "datetimeLast" -]New value: +[ + "id", + "name", + "coordinates", + "provider", + "providerId", + "timezone", + "distanceMeters", + "datetimeLast" +] - changed
Output schema / properties / notice / descriptionPrevious value: -"Guidance when the station resolved but returned no recent values."New value: +"Set when coordinate resolution compared a full 1,000-station page: more stations may match, so the station returned is the nearest of the first 1,000 OpenAQ lists, not necessarily the nearest overall."
- Changed
openaq_list_countries1 field changed- changed
Input schema / properties / query / descriptionPrevious value: -"Case-insensitive filter over the country catalog by code and name. A two-letter query is treated as an exact ISO 3166-1 alpha-2 code (e.g. \"US\" → United States); longer queries match as substrings (e.g. \"united\", \"germany\"). Omit to page through the whole catalog."New value: +"Case-insensitive filter over the country catalog by code and name. A two-letter query matches an exact ISO 3166-1 alpha-2 code first (e.g. \"US\" → United States) and falls back to substrings when no code matches; longer queries match as substrings (e.g. \"united\", \"germany\"). Omit to page through the whole catalog."
5 tool updates
- Changed
openaq_find_locations23 fields changed- changed
Input schema / properties / bbox / descriptionPrevious value: -"Bounding box as \"minLon,minLat,maxLon,maxLat\" (west,south,east,north). Alternative to coordinates+radius for area sweeps. Results have no distance field (no center point)."New value: +"Bounding box as \"minLon,minLat,maxLon,maxLat\" (west,south,east,north), with minLon ≤ maxLon and minLat ≤ maxLat. Alternative to coordinates+radius for area sweeps. Results have no distance field (no center point)." - changed
Input schema / properties / iso / descriptionPrevious value: -"Restrict to a country by ISO 3166-1 alpha-2 code (e.g. \"US\", \"IN\", \"DE\"). Combine with bbox/coordinates to scope, or use alone for a country-wide list. Discover coverage with openaq_list_countries."New value: +"Restrict to a country by OpenAQ country code: ISO 3166-1 alpha-2 (e.g. \"US\", \"IN\", \"DE\"; either case), or \"-99\" where OpenAQ lists a country with no ISO code. Take codes from openaq_list_countries. Combine with bbox/coordinates to scope, or use alone for a country-wide list." - removed
Input schema / properties / iso / maxLengthRemoved value: -2 - removed
Input schema / properties / iso / minLengthRemoved value: -2 - added
Input schema / properties / iso / patternAdded value: +"^(?:[A-Za-z]{2}|-99)$" - added
Input schema / properties / mobileAdded value: +{ + "description": "Mobility filter: true returns only mobile stations, false only fixed ones. Omit for both.", + "type": "boolean" +} - added
Input schema / properties / monitorAdded value: +{ + "description": "Station class filter: true returns only reference-grade monitors, false only low-cost sensors. Omit for both.", + "type": "boolean" +} - changed
Input schema / properties / page / descriptionPrevious value: -"Which page of results to return (1-based). Default 1. The only way past the 100-station cap: with limit 100, page 2 returns stations 101–200. Distance ordering applies within a page, not across pages, so paging is for iso/bbox sweeps — a near-me coordinates search should stay on page 1."New value: +"Which page of results to return (1-based). Default 1. The only way past the 100-station cap: with limit 100, page 2 returns stations 101–200. Distance ordering applies within a page, not across pages, so paging is for iso/bbox sweeps — a near-me coordinates search should stay on page 1. A page past the last one fails with page_exhausted." - added
Input schema / properties / parametersId / exclusiveMinimumAdded value: +0 - removed
Input schema / properties / parametersId / minimumRemoved value: --9007199254740991 - added
Input schema / properties / providersIdAdded value: +{ + "description": "Only return stations from this OpenAQ provider (data network) id — read it from a previous result's providerId (e.g. 119 = AirNow).", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer" +} - removed
Input schema / properties / radius / defaultRemoved value: -12000 - changed
Input schema / properties / radius / descriptionPrevious value: -"Search radius in metres around coordinates (1–25000; the API hard-caps at 25000). Default 12000 (~12km). Only used with coordinates."New value: +"Search radius in metres around coordinates (1–25000; the API hard-caps at 25000). Default 12000 (~12km). Requires coordinates — a radius sent with only bbox or iso is rejected." - changed
Output schema / properties / error / properties / data / properties / reason / descriptionPrevious value: -"Machine-readable failure mode. Declared by this tool: `no_locations_found`: No monitoring stations match the given area or filters. `no_search_scope`: None of coordinates, bbox, or iso was provided. `upstream_error`: OpenAQ returned 5xx or an unreadable body on every retry. `rate_limited`: OpenAQ returned 429 — the request budget for this key is exhausted. `upstream_timeout`: OpenAQ did not respond within the request timeout on every retry. `invalid_api_key`: OpenAQ returned 401 — the configured OPENAQ_API_KEY is missing, invalid, or revoked. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `no_locations_found`: No monitoring stations match the given area or filters. `page_exhausted`: A page past the first returned no stations — the results end before it. `no_search_scope`: None of coordinates, bbox, or iso was provided. `invalid_search_scope`: coordinates and bbox were both provided, or radius was provided without coordinates. `upstream_error`: OpenAQ returned 5xx or an unreadable body on every retry. `rate_limited`: OpenAQ returned 429 — the request budget for this key is exhausted. `upstream_timeout`: OpenAQ did not respond within the request timeout on every retry. `invalid_api_key`: OpenAQ returned 401 — the configured OPENAQ_API_KEY is missing, invalid, or revoked. Other values are possible when a failure originates below the handler." - changed
Output schema / properties / error / properties / data / properties / reason / examplesPrevious value: -[ - "no_locations_found", - "no_search_scope", - "upstream_error", - "rate_limited", - "upstream_timeout", - "invalid_api_key" -]New value: +[ + "no_locations_found", + "page_exhausted", + "no_search_scope", + "invalid_search_scope", + "upstream_error", + "rate_limited", + "upstream_timeout", + "invalid_api_key" +] - changed
Output schema / properties / locations / descriptionPrevious value: -"Matching stations. Empty array means no monitoring coverage for the query — NOT clean air. Widen the radius, try openaq_list_countries, or use the modeled open-meteo air-quality tool."New value: +"Matching stations on this page, never empty: a query with no match fails with no_locations_found (no monitoring coverage, NOT clean air), and a page past the last with page_exhausted." - changed
Output schema / properties / locations / items / properties / country / properties / code / descriptionPrevious value: -"ISO 3166-1 alpha-2 country code"New value: +"OpenAQ country code: ISO 3166-1 alpha-2, or \"-99\" where OpenAQ lists none" - added
Output schema / properties / locations / items / properties / providerIdAdded value: +{ + "description": "OpenAQ provider id — pass as providersId to restrict a search to this network. Null when OpenAQ lists no provider.", + "type": [ + "number", + "null" + ] +} - changed
Output schema / properties / locations / items / requiredPrevious value: -[ - "id", - "name", - "locality", - "country", - "coordinates", - "distanceMeters", - "provider", - "isMonitor", - "isMobile", - "parameters", - "datetimeLast", - "datetimeFirst" -]New value: +[ + "id", + "name", + "locality", + "country", + "coordinates", + "distanceMeters", + "provider", + "providerId", + "isMonitor", + "isMobile", + "parameters", + "datetimeLast", + "datetimeFirst" +] - changed
Output schema / properties / notice / descriptionPrevious value: -"Guidance when OpenAQ reports a lower-bound total without the result set hitting the limit."New value: +"Guidance on a full page: the next page to request, or how to narrow the search." - changed
Output schema / properties / totalCount / descriptionPrevious value: -"Total matching stations before the limit. A floor (not an exact count) when totalCountIsLowerBound is true."New value: +"Stations counted through this page: (page − 1) × limit plus the stations returned. Exact on a page that came back short of the limit (the last page); a floor when totalCountIsLowerBound is true." - changed
Output schema / properties / totalCountIsLowerBound / descriptionPrevious value: -"True when OpenAQ reported a lower bound (\">N\"): totalCount is a floor and more stations match than the count shown."New value: +"True when this page came back full: at least totalCount stations match, and the next page may hold more." - changed
Output schema / properties / truncated / descriptionPrevious value: -"True when the station list was capped at the limit."New value: +"True when this page came back full (the limit was reached), so the next page may hold more stations."
- Changed
openaq_get_measurements4 fields changed- added
Input schema / properties / locationId / exclusiveMinimumAdded value: +0 - removed
Input schema / properties / locationId / minimumRemoved value: --9007199254740991 - added
Input schema / properties / parametersId / exclusiveMinimumAdded value: +0 - removed
Input schema / properties / parametersId / minimumRemoved value: --9007199254740991
- Changed
openaq_get_readings4 fields changed- added
Input schema / properties / locationId / exclusiveMinimumAdded value: +0 - removed
Input schema / properties / locationId / minimumRemoved value: --9007199254740991 - added
Input schema / properties / parametersId / exclusiveMinimumAdded value: +0 - removed
Input schema / properties / parametersId / minimumRemoved value: --9007199254740991
- Changed
openaq_list_countries11 fields changed- added
Input schema / properties / limitAdded value: +{ + "default": 20, + "description": "Max countries to return (1–100). Default 20. Applied after query and parametersId, in OpenAQ catalog order.", + "maximum": 100, + "minimum": 1, + "type": "integer" +} - added
Input schema / properties / pageAdded value: +{ + "default": 1, + "description": "Which page of the filtered list to return (1-based). Default 1. With limit 20, page 2 returns countries 21–40. A page past the last one returns no countries and a notice naming the last page.", + "maximum": 9007199254740991, + "minimum": 1, + "type": "integer" +} - added
Input schema / properties / parametersId / exclusiveMinimumAdded value: +0 - removed
Input schema / properties / parametersId / minimumRemoved value: --9007199254740991 - changed
Input schema / properties / query / descriptionPrevious value: -"Case-insensitive filter over the bounded country catalog (~153) by code and name. A two-letter query is treated as an exact ISO 3166-1 alpha-2 code (e.g. \"US\" → United States); longer queries match as substrings (e.g. \"united\", \"germany\"). Omit to list all."New value: +"Case-insensitive filter over the country catalog by code and name. A two-letter query is treated as an exact ISO 3166-1 alpha-2 code (e.g. \"US\" → United States); longer queries match as substrings (e.g. \"united\", \"germany\"). Omit to page through the whole catalog." - added
Output schema / properties / capAdded value: +{ + "description": "The limit that was applied.", + "type": "number" +} - changed
Output schema / properties / countries / items / properties / code / descriptionPrevious value: -"ISO 3166-1 alpha-2 code — pass as iso to openaq_find_locations"New value: +"OpenAQ country code: ISO 3166-1 alpha-2, or \"-99\" where OpenAQ has none — pass as iso to openaq_find_locations" - changed
Output schema / properties / notice / descriptionPrevious value: -"Guidance when the query matched nothing."New value: +"Guidance when the filters matched nothing, when more pages follow (the next page to request), or when the page is past the last one." - added
Output schema / properties / shownAdded value: +{ + "description": "Number of countries returned on this page.", + "type": "number" +} - changed
Output schema / properties / totalCount / descriptionPrevious value: -"Total countries matched after filtering."New value: +"Countries matched after query and parametersId, across every page." - added
Output schema / properties / truncatedAdded value: +{ + "description": "True when more matching countries follow on later pages.", + "type": "boolean" +}
- Changed
openaq_list_parameters1 field changed- changed
Input schema / properties / query / descriptionPrevious value: -"Case-insensitive filter over the bounded parameter catalog (~44) by code, display name, and description (e.g. \"pm\" for particulates, \"ozone\", \"co\"). Omit to list everything."New value: +"Case-insensitive filter over the bounded parameter catalog by code, display name, and description (e.g. \"pm\" for particulates, \"ozone\", \"co\"). Omit to list everything."
3 tool updates
- Changed
openaq_dataframe_describe1 field changed- changed
Input schema / properties / canvas_id / descriptionPrevious value: -"DataCanvas id returned by openaq_get_measurements when a series spilled."New value: +"DataCanvas id returned by openaq_get_measurements — minted when a series overflowed the inline preview, or the canvas_id you passed it."
- Changed
openaq_dataframe_query5 fields changed- changed
Input schema / properties / canvas_id / descriptionPrevious value: -"DataCanvas id returned by openaq_get_measurements when a series spilled."New value: +"DataCanvas id returned by openaq_get_measurements — minted when a series overflowed the inline preview, or the canvas_id you passed it." - added
Output schema / properties / noticeAdded value: +{ + "description": "How to reach the rest of the result when the row cap cut it short.", + "type": "string" +} - changed
Output schema / properties / rowCount / descriptionPrevious value: -"Full result count before the row cap."New value: +"Rows returned in this response, always equal to rows.length. It is the cap (200) when truncated is set, not the size of the full result." - changed
Output schema / properties / rows / descriptionPrevious value: -"Result rows (capped at the canvas row limit)."New value: +"Result rows, at most 200. Every row here is also rendered in the text output — the two surfaces carry the same set." - added
Output schema / properties / truncatedAdded value: +{ + "description": "True when the query matched more than 200 rows and the response was cut to the cap. Absent when the whole result fit. Page through the rest with ORDER BY plus LIMIT/OFFSET in your own SQL.", + "type": "boolean" +}
- Changed
openaq_get_measurements12 fields changed- changed
Input schema / properties / canvas_id / descriptionPrevious value: -"DataCanvas id from a prior openaq_get_measurements call, to reuse the same canvas (e.g. to compare two stations' series side by side). Omit to start fresh; the response returns a new canvas_id when the series spills."New value: +"DataCanvas id from a prior openaq_get_measurements call, to put this series on the same canvas (e.g. to compare two stations' series side by side). Supplying it stages the series whatever its size. Reuse stages one table per sensor, so a second sensor adds a table while the same sensor overwrites its earlier series — the response says so when that happens. Omit to start fresh; the response returns a new canvas_id when the series overflows the inline preview." - changed
Input schema / properties / limit / descriptionPrevious value: -"Max rows per page from the API (1–1000). Default 1000. The tool pages internally up to the spill threshold."New value: +"Max rows per page from the API (1–1000). Default 1000. The tool pages internally up to the 5000-row pull ceiling." - changed
Output schema / anyOfPrevious value: -[ - { - "not": { - "required": [ - "error" - ] - }, - "required": [ - "location", - "parameter", - "sensorId", - "aggregation", - "series", - "rowCount", - "totalCount" - ] - }, - { - "required": [ - "error" - ] - } -]New value: +[ + { + "not": { + "required": [ + "error" + ] + }, + "required": [ + "location", + "parameter", + "sensorId", + "aggregation", + "series", + "rowCount", + "pulledCount", + "pullComplete", + "totalCount" + ] + }, + { + "required": [ + "error" + ] + } +] - changed
Output schema / properties / canvasId / descriptionPrevious value: -"DataCanvas id holding the pulled series. Query with openaq_dataframe_query. The pull stops at 5000 rows, so this is the whole series only when totalCount is at or below that — read the notice, which says so when the cap or a failed page cut the pull short."New value: +"DataCanvas id holding the staged series — pulledCount rows of it. Call openaq_dataframe_describe on this id for the table's columns, then openaq_dataframe_query to run SQL. Present whenever staging succeeded, which includes a series that fit inline on a canvas_id you supplied." - changed
Output schema / properties / notice / descriptionPrevious value: -"What limited this response, when something did — the row cap, a failed page, or DataCanvas being unavailable — plus how to reach the rest."New value: +"What limited this response or where the rest of it lives — the row cap, a failed page, DataCanvas being unavailable, or the canvas table the series was staged on and the tools that read it." - added
Output schema / properties / pullCompleteAdded value: +{ + "description": "True when the pager reached the end of the requested range, so pulledCount is the whole series for it. False when the 5000-row cap or a failed page stopped the pull early — the rows past that point are in neither this response nor the canvas table, and the notice says how to reach them.", + "type": "boolean" +} - added
Output schema / properties / pulledCountAdded value: +{ + "description": "Rows pulled from OpenAQ — the canvas table's row count when canvasId is present. Equals rowCount when the whole series fit inline; larger when series is a preview.", + "type": "number" +} - changed
Output schema / properties / series / descriptionPrevious value: -"The (possibly previewed) series, newest or oldest first per the API. When truncated, this is a preview — query canvasId for the rows staged there."New value: +"The (possibly previewed) series, newest or oldest first per the API. Every row here is also rendered in the text output. When truncated, this is a preview of pulledCount rows — query canvasId for the rest." - changed
Output schema / properties / tableName / descriptionPrevious value: -"Canvas table name for the staged series (e.g. \"measurements_1701\"). Reference it in SQL."New value: +"Canvas table holding the staged series (e.g. \"measurements_1701\"). openaq_dataframe_describe lists its columns; reference this name in openaq_dataframe_query SQL. One table per sensor, so re-staging the same sensor on this canvas overwrites it." - changed
Output schema / properties / totalCount / descriptionPrevious value: -"Total rows in the full series."New value: +"Rows in the full series for this range. A floor rather than an exact count when totalCountIsLowerBound is set; never below pulledCount." - added
Output schema / properties / totalCountIsLowerBoundAdded value: +{ + "description": "Set when totalCount is only a floor: the pull stopped early and OpenAQ reported the range total as \">N\" instead of an exact number, so more rows exist than totalCount states. Absent when the count is exact.", + "type": "boolean" +} - changed
Output schema / properties / truncated / descriptionPrevious value: -"True when the series exceeded the inline limit, so series is a preview and the pulled rows were staged on canvasId. Absent/false when everything fit inline. It says nothing about whether the pull itself was complete — compare rowCount and totalCount, and read the notice."New value: +"True when the series exceeded the inline limit, so series is a preview of the pulled rows. Absent/false when every pulled row is inline. It describes the preview only — canvasId reports whether the rows were staged, and pullComplete whether the pull itself finished."
7 tool updates
- Changed
openaq_dataframe_describe1 field changed- added
Input schema / properties / canvas_id / patternAdded value: +"^[A-Za-z0-9_-]{10}$"
- Changed
openaq_dataframe_query1 field changed- added
Input schema / properties / canvas_id / patternAdded value: +"^[A-Za-z0-9_-]{10}$"
- Changed
openaq_find_locations6 fields changed- removed
Output schema / properties / locations / items / properties / distanceMeters / anyOfRemoved value: -[ - { - "type": "number" - }, - { - "type": "null" - } -] - added
Output schema / properties / locations / items / properties / distanceMeters / typeAdded value: +[ + "number", + "null" +] - removed
Output schema / properties / locations / items / properties / locality / anyOfRemoved value: -[ - { - "type": "string" - }, - { - "type": "null" - } -] - added
Output schema / properties / locations / items / properties / locality / typeAdded value: +[ + "string", + "null" +] - removed
Output schema / properties / locations / items / properties / parameters / items / properties / displayName / anyOfRemoved value: -[ - { - "type": "string" - }, - { - "type": "null" - } -] - added
Output schema / properties / locations / items / properties / parameters / items / properties / displayName / typeAdded value: +[ + "string", + "null" +]
- Changed
openaq_get_measurements9 fields changed- changed
Input schema / properties / canvas_id / descriptionPrevious value: -"DataCanvas id from a prior call to reuse the same canvas (e.g. to compare two stations' series side by side). Omit to start fresh; the response returns a new canvas_id when the series spills."New value: +"DataCanvas id from a prior openaq_get_measurements call, to reuse the same canvas (e.g. to compare two stations' series side by side). Omit to start fresh; the response returns a new canvas_id when the series spills." - added
Input schema / properties / canvas_id / patternAdded value: +"^[A-Za-z0-9_-]{10}$" - removed
Output schema / properties / parameter / properties / displayName / anyOfRemoved value: -[ - { - "type": "string" - }, - { - "type": "null" - } -] - added
Output schema / properties / parameter / properties / displayName / typeAdded value: +[ + "string", + "null" +] - removed
Output schema / properties / series / items / properties / percentComplete / anyOfRemoved value: -[ - { - "type": "number" - }, - { - "type": "null" - } -] - added
Output schema / properties / series / items / properties / percentComplete / typeAdded value: +[ + "number", + "null" +] - changed
Output schema / properties / series / items / properties / summary / anyOfPrevious value: -[ - { - "additionalProperties": false, - "properties": { - "avg": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "description": "Mean reading in the bucket" - }, - "max": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "description": "Maximum reading in the bucket" - }, - "median": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "description": "Median reading in the bucket" - }, - "min": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "description": "Minimum reading in the bucket" - }, - "sd": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "description": "Standard deviation — null when only one reading in the bucket" - } - }, - "required": [ - "min", - "median", - "max", - "avg", - "sd" - ], - "type": "object" - }, - { - "type": "null" - } -]New value: +[ + { + "additionalProperties": false, + "properties": { + "avg": { + "description": "Mean reading in the bucket", + "type": [ + "number", + "null" + ] + }, + "max": { + "description": "Maximum reading in the bucket", + "type": [ + "number", + "null" + ] + }, + "median": { + "description": "Median reading in the bucket", + "type": [ + "number", + "null" + ] + }, + "min": { + "description": "Minimum reading in the bucket", + "type": [ + "number", + "null" + ] + }, + "sd": { + "description": "Standard deviation — null when only one reading in the bucket", + "type": [ + "number", + "null" + ] + } + }, + "required": [ + "min", + "median", + "max", + "avg", + "sd" + ], + "type": "object" + }, + { + "type": "null" + } +] - removed
Output schema / properties / series / items / properties / value / anyOfRemoved value: -[ - { - "type": "number" - }, - { - "type": "null" - } -] - added
Output schema / properties / series / items / properties / value / typeAdded value: +[ + "number", + "null" +]
- Changed
openaq_get_readings6 fields changed- removed
Output schema / properties / location / properties / distanceMeters / anyOfRemoved value: -[ - { - "type": "number" - }, - { - "type": "null" - } -] - added
Output schema / properties / location / properties / distanceMeters / typeAdded value: +[ + "number", + "null" +] - removed
Output schema / properties / location / properties / timezone / anyOfRemoved value: -[ - { - "type": "string" - }, - { - "type": "null" - } -] - added
Output schema / properties / location / properties / timezone / typeAdded value: +[ + "string", + "null" +] - removed
Output schema / properties / readings / items / properties / parameter / properties / displayName / anyOfRemoved value: -[ - { - "type": "string" - }, - { - "type": "null" - } -] - added
Output schema / properties / readings / items / properties / parameter / properties / displayName / typeAdded value: +[ + "string", + "null" +]
- Changed
openaq_list_countries4 fields changed- removed
Output schema / properties / countries / items / properties / datetimeFirst / anyOfRemoved value: -[ - { - "type": "string" - }, - { - "type": "null" - } -] - added
Output schema / properties / countries / items / properties / datetimeFirst / typeAdded value: +[ + "string", + "null" +] - removed
Output schema / properties / countries / items / properties / datetimeLast / anyOfRemoved value: -[ - { - "type": "string" - }, - { - "type": "null" - } -] - added
Output schema / properties / countries / items / properties / datetimeLast / typeAdded value: +[ + "string", + "null" +]
- Changed
openaq_list_parameters4 fields changed- removed
Output schema / properties / parameters / items / properties / description / anyOfRemoved value: -[ - { - "type": "string" - }, - { - "type": "null" - } -] - added
Output schema / properties / parameters / items / properties / description / typeAdded value: +[ + "string", + "null" +] - removed
Output schema / properties / parameters / items / properties / displayName / anyOfRemoved value: -[ - { - "type": "string" - }, - { - "type": "null" - } -] - added
Output schema / properties / parameters / items / properties / displayName / typeAdded value: +[ + "string", + "null" +]
7 tool updates
- Changed
openaq_dataframe_describe6 fields changed- changed
Input schema / $schemaPrevious value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema" - added
Input schema / additionalPropertiesAdded value: +false - changed
Output schema / $schemaPrevious value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema" - added
Output schema / anyOfAdded value: +[ + { + "not": { + "required": [ + "error" + ] + }, + "required": [ + "tables" + ] + }, + { + "required": [ + "error" + ] + } +] - added
Output schema / properties / errorAdded value: +{ + "additionalProperties": {}, + "description": "Present when the call failed. Absent on success.", + "properties": { + "code": { + "description": "JSON-RPC error code for this failure.", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer" + }, + "data": { + "additionalProperties": {}, + "properties": { + "reason": { + "description": "Machine-readable failure mode. Declared by this tool: `canvas_unavailable`: DataCanvas is not enabled (CANVAS_PROVIDER_TYPE is not duckdb). `canvas_not_found`: The canvas_id is unknown or its canvas has expired. Other values are possible when a failure originates below the handler.", + "examples": [ + "canvas_unavailable", + "canvas_not_found" + ], + "type": "string" + }, + "recovery": { + "additionalProperties": {}, + "description": "Actionable next step for the caller.", + "properties": { + "hint": { + "type": "string" + } + }, + "required": [ + "hint" + ], + "type": "object" + }, + "retryable": { + "description": "Whether retrying may succeed.", + "type": "boolean" + } + }, + "type": "object" + }, + "message": { + "description": "Human-readable description of what went wrong.", + "type": "string" + } + }, + "required": [ + "code", + "message" + ], + "type": "object" +} - removed
Output schema / requiredRemoved value: -[ - "tables" -]
- Changed
openaq_dataframe_query6 fields changed- changed
Input schema / $schemaPrevious value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema" - added
Input schema / additionalPropertiesAdded value: +false - changed
Output schema / $schemaPrevious value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema" - added
Output schema / anyOfAdded value: +[ + { + "not": { + "required": [ + "error" + ] + }, + "required": [ + "rows", + "rowCount" + ] + }, + { + "required": [ + "error" + ] + } +] - added
Output schema / properties / errorAdded value: +{ + "additionalProperties": {}, + "description": "Present when the call failed. Absent on success.", + "properties": { + "code": { + "description": "JSON-RPC error code for this failure.", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer" + }, + "data": { + "additionalProperties": {}, + "properties": { + "reason": { + "description": "Machine-readable failure mode. Declared by this tool: `canvas_unavailable`: DataCanvas is not enabled (CANVAS_PROVIDER_TYPE is not duckdb). `canvas_not_found`: The canvas_id is unknown or its canvas has expired. `missing_table`: The SQL references a table that is not staged on this canvas (dropped, expired, or misspelled). Other values are possible when a failure originates below the handler.", + "examples": [ + "canvas_unavailable", + "canvas_not_found", + "missing_table" + ], + "type": "string" + }, + "recovery": { + "additionalProperties": {}, + "description": "Actionable next step for the caller.", + "properties": { + "hint": { + "type": "string" + } + }, + "required": [ + "hint" + ], + "type": "object" + }, + "retryable": { + "description": "Whether retrying may succeed.", + "type": "boolean" + } + }, + "type": "object" + }, + "message": { + "description": "Human-readable description of what went wrong.", + "type": "string" + } + }, + "required": [ + "code", + "message" + ], + "type": "object" +} - removed
Output schema / requiredRemoved value: -[ - "rows", - "rowCount" -]
- Changed
openaq_find_locations6 fields changed- changed
Input schema / $schemaPrevious value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema" - added
Input schema / additionalPropertiesAdded value: +false - changed
Output schema / $schemaPrevious value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema" - added
Output schema / anyOfAdded value: +[ + { + "not": { + "required": [ + "error" + ] + }, + "required": [ + "locations", + "totalCount" + ] + }, + { + "required": [ + "error" + ] + } +] - added
Output schema / properties / errorAdded value: +{ + "additionalProperties": {}, + "description": "Present when the call failed. Absent on success.", + "properties": { + "code": { + "description": "JSON-RPC error code for this failure.", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer" + }, + "data": { + "additionalProperties": {}, + "properties": { + "reason": { + "description": "Machine-readable failure mode. Declared by this tool: `no_locations_found`: No monitoring stations match the given area or filters. `no_search_scope`: None of coordinates, bbox, or iso was provided. `upstream_error`: OpenAQ returned 5xx or an unreadable body on every retry. `rate_limited`: OpenAQ returned 429 — the request budget for this key is exhausted. `upstream_timeout`: OpenAQ did not respond within the request timeout on every retry. `invalid_api_key`: OpenAQ returned 401 — the configured OPENAQ_API_KEY is missing, invalid, or revoked. Other values are possible when a failure originates below the handler.", + "examples": [ + "no_locations_found", + "no_search_scope", + "upstream_error", + "rate_limited", + "upstream_timeout", + "invalid_api_key" + ], + "type": "string" + }, + "recovery": { + "additionalProperties": {}, + "description": "Actionable next step for the caller.", + "properties": { + "hint": { + "type": "string" + } + }, + "required": [ + "hint" + ], + "type": "object" + }, + "retryable": { + "description": "Whether retrying may succeed.", + "type": "boolean" + } + }, + "type": "object" + }, + "message": { + "description": "Human-readable description of what went wrong.", + "type": "string" + } + }, + "required": [ + "code", + "message" + ], + "type": "object" +} - removed
Output schema / requiredRemoved value: -[ - "locations", - "totalCount" -]
- Changed
openaq_get_measurements6 fields changed- changed
Input schema / $schemaPrevious value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema" - added
Input schema / additionalPropertiesAdded value: +false - changed
Output schema / $schemaPrevious value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema" - added
Output schema / anyOfAdded value: +[ + { + "not": { + "required": [ + "error" + ] + }, + "required": [ + "location", + "parameter", + "sensorId", + "aggregation", + "series", + "rowCount", + "totalCount" + ] + }, + { + "required": [ + "error" + ] + } +] - added
Output schema / properties / errorAdded value: +{ + "additionalProperties": {}, + "description": "Present when the call failed. Absent on success.", + "properties": { + "code": { + "description": "JSON-RPC error code for this failure.", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer" + }, + "data": { + "additionalProperties": {}, + "properties": { + "reason": { + "description": "Machine-readable failure mode. Declared by this tool: `location_not_found`: The locationId does not exist. `parameter_not_at_location`: No sensor at the station measures parametersId (often the wrong unit variant was chosen). `no_data_for_range`: The sensor has no measurements in the requested date range. `invalid_date_range`: The range is empty — once both bounds are expanded to full UTC timestamps, datetimeTo does not land after datetimeFrom. `canvas_not_found`: The supplied canvas_id is unknown or has expired, so the series cannot be staged onto it. `upstream_error`: OpenAQ returned 5xx or an unreadable body on every retry. `rate_limited`: OpenAQ returned 429 — the request budget for this key is exhausted. `upstream_timeout`: OpenAQ did not respond within the request timeout on every retry. `invalid_api_key`: OpenAQ returned 401 — the configured OPENAQ_API_KEY is missing, invalid, or revoked. Other values are possible when a failure originates below the handler.", + "examples": [ + "location_not_found", + "parameter_not_at_location", + "no_data_for_range", + "invalid_date_range", + "canvas_not_found", + "upstream_error", + "rate_limited", + "upstream_timeout", + "invalid_api_key" + ], + "type": "string" + }, + "recovery": { + "additionalProperties": {}, + "description": "Actionable next step for the caller.", + "properties": { + "hint": { + "type": "string" + } + }, + "required": [ + "hint" + ], + "type": "object" + }, + "retryable": { + "description": "Whether retrying may succeed.", + "type": "boolean" + } + }, + "type": "object" + }, + "message": { + "description": "Human-readable description of what went wrong.", + "type": "string" + } + }, + "required": [ + "code", + "message" + ], + "type": "object" +} - removed
Output schema / requiredRemoved value: -[ - "location", - "parameter", - "sensorId", - "aggregation", - "series", - "rowCount", - "totalCount" -]
- Changed
openaq_get_readings6 fields changed- changed
Input schema / $schemaPrevious value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema" - added
Input schema / additionalPropertiesAdded value: +false - changed
Output schema / $schemaPrevious value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema" - added
Output schema / anyOfAdded value: +[ + { + "not": { + "required": [ + "error" + ] + }, + "required": [ + "location", + "readings" + ] + }, + { + "required": [ + "error" + ] + } +] - added
Output schema / properties / errorAdded value: +{ + "additionalProperties": {}, + "description": "Present when the call failed. Absent on success.", + "properties": { + "code": { + "description": "JSON-RPC error code for this failure.", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer" + }, + "data": { + "additionalProperties": {}, + "properties": { + "reason": { + "description": "Machine-readable failure mode. Declared by this tool: `location_not_found`: The locationId does not exist (API returns {\"detail\":\"Location not found\"}). `parameter_not_at_location`: No sensor at the resolved station measures parametersId (often the wrong unit variant was chosen). `no_station_near_coordinates`: The 25km auto-resolution sweep found no station measuring the requested parametersId. `no_recent_values`: The station has the requested sensors but its latest feed carried no values for them. `invalid_location_scope`: Both locationId and coordinates were provided, or neither was. `missing_coordinates_parameter`: coordinates was provided without parametersId. `upstream_error`: OpenAQ returned 5xx or an unreadable body on every retry. `rate_limited`: OpenAQ returned 429 — the request budget for this key is exhausted. `upstream_timeout`: OpenAQ did not respond within the request timeout on every retry. `invalid_api_key`: OpenAQ returned 401 — the configured OPENAQ_API_KEY is missing, invalid, or revoked. Other values are possible when a failure originates below the handler.", + "examples": [ + "location_not_found", + "parameter_not_at_location", + "no_station_near_coordinates", + "no_recent_values", + "invalid_location_scope", + "missing_coordinates_parameter", + "upstream_error", + "rate_limited", + "upstream_timeout", + "invalid_api_key" + ], + "type": "string" + }, + "recovery": { + "additionalProperties": {}, + "description": "Actionable next step for the caller.", + "properties": { + "hint": { + "type": "string" + } + }, + "required": [ + "hint" + ], + "type": "object" + }, + "retryable": { + "description": "Whether retrying may succeed.", + "type": "boolean" + } + }, + "type": "object" + }, + "message": { + "description": "Human-readable description of what went wrong.", + "type": "string" + } + }, + "required": [ + "code", + "message" + ], + "type": "object" +} - removed
Output schema / requiredRemoved value: -[ - "location", - "readings" -]
- Changed
openaq_list_countries6 fields changed- changed
Input schema / $schemaPrevious value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema" - added
Input schema / additionalPropertiesAdded value: +false - changed
Output schema / $schemaPrevious value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema" - added
Output schema / anyOfAdded value: +[ + { + "not": { + "required": [ + "error" + ] + }, + "required": [ + "countries", + "totalCount" + ] + }, + { + "required": [ + "error" + ] + } +] - added
Output schema / properties / errorAdded value: +{ + "additionalProperties": {}, + "description": "Present when the call failed. Absent on success.", + "properties": { + "code": { + "description": "JSON-RPC error code for this failure.", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer" + }, + "data": { + "additionalProperties": {}, + "properties": { + "reason": { + "description": "Machine-readable failure mode. Declared by this tool: `upstream_error`: OpenAQ /countries returned 5xx or an unreadable body on every retry. `rate_limited`: OpenAQ returned 429 — the request budget for this key is exhausted. `upstream_timeout`: OpenAQ /countries did not respond within the request timeout on every retry. `invalid_api_key`: OpenAQ returned 401 — the configured OPENAQ_API_KEY is missing, invalid, or revoked. Other values are possible when a failure originates below the handler.", + "examples": [ + "upstream_error", + "rate_limited", + "upstream_timeout", + "invalid_api_key" + ], + "type": "string" + }, + "recovery": { + "additionalProperties": {}, + "description": "Actionable next step for the caller.", + "properties": { + "hint": { + "type": "string" + } + }, + "required": [ + "hint" + ], + "type": "object" + }, + "retryable": { + "description": "Whether retrying may succeed.", + "type": "boolean" + } + }, + "type": "object" + }, + "message": { + "description": "Human-readable description of what went wrong.", + "type": "string" + } + }, + "required": [ + "code", + "message" + ], + "type": "object" +} - removed
Output schema / requiredRemoved value: -[ - "countries", - "totalCount" -]
- Changed
openaq_list_parameters6 fields changed- changed
Input schema / $schemaPrevious value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema" - added
Input schema / additionalPropertiesAdded value: +false - changed
Output schema / $schemaPrevious value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema" - added
Output schema / anyOfAdded value: +[ + { + "not": { + "required": [ + "error" + ] + }, + "required": [ + "parameters", + "totalCount" + ] + }, + { + "required": [ + "error" + ] + } +] - added
Output schema / properties / errorAdded value: +{ + "additionalProperties": {}, + "description": "Present when the call failed. Absent on success.", + "properties": { + "code": { + "description": "JSON-RPC error code for this failure.", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer" + }, + "data": { + "additionalProperties": {}, + "properties": { + "reason": { + "description": "Machine-readable failure mode. Declared by this tool: `upstream_error`: OpenAQ /parameters returned 5xx or an unreadable body on every retry. `rate_limited`: OpenAQ returned 429 — the request budget for this key is exhausted. `upstream_timeout`: OpenAQ /parameters did not respond within the request timeout on every retry. `invalid_api_key`: OpenAQ returned 401 — the configured OPENAQ_API_KEY is missing, invalid, or revoked. Other values are possible when a failure originates below the handler.", + "examples": [ + "upstream_error", + "rate_limited", + "upstream_timeout", + "invalid_api_key" + ], + "type": "string" + }, + "recovery": { + "additionalProperties": {}, + "description": "Actionable next step for the caller.", + "properties": { + "hint": { + "type": "string" + } + }, + "required": [ + "hint" + ], + "type": "object" + }, + "retryable": { + "description": "Whether retrying may succeed.", + "type": "boolean" + } + }, + "type": "object" + }, + "message": { + "description": "Human-readable description of what went wrong.", + "type": "string" + } + }, + "required": [ + "code", + "message" + ], + "type": "object" +} - removed
Output schema / requiredRemoved value: -[ - "parameters", - "totalCount" -]
1 tool update
- Changed
openaq_get_measurements11 fields changed- changed
Input schema / properties / datetimeFrom / descriptionPrevious value: -"Start of the range, inclusive. Date \"YYYY-MM-DD\" or full UTC \"YYYY-MM-DDTHH:MM:SSZ\". Omit to get the most recent values."New value: +"Start of the range, inclusive. Date \"YYYY-MM-DD\" (opens at 00:00:00Z that day) or full UTC \"YYYY-MM-DDTHH:MM:SSZ\". Omit to get the most recent values." - changed
Input schema / properties / datetimeTo / descriptionPrevious value: -"End of the range, inclusive. Must be on or after datetimeFrom. Omit for \"up to now\"."New value: +"End of the range, inclusive. Date \"YYYY-MM-DD\" covers that whole day (closes at 23:59:59Z) or full UTC \"YYYY-MM-DDTHH:MM:SSZ\". Must land after datetimeFrom — the two forms mix freely, so \"2026-06-25\" to \"2026-06-25\" is a valid one-day range. Omit for \"up to now\"." - changed
Output schema / properties / canvasId / descriptionPrevious value: -"DataCanvas id holding the full series. Query with openaq_dataframe_query."New value: +"DataCanvas id holding the pulled series. Query with openaq_dataframe_query. The pull stops at 5000 rows, so this is the whole series only when totalCount is at or below that — read the notice, which says so when the cap or a failed page cut the pull short." - changed
Output schema / properties / notice / descriptionPrevious value: -"Degraded-mode hint when the series was truncated but DataCanvas is unavailable."New value: +"What limited this response, when something did — the row cap, a failed page, or DataCanvas being unavailable — plus how to reach the rest." - changed
Output schema / properties / series / descriptionPrevious value: -"The (possibly previewed) series, newest or oldest first per the API. When truncated, this is a preview — query canvasId for the full set."New value: +"The (possibly previewed) series, newest or oldest first per the API. When truncated, this is a preview — query canvasId for the rows staged there." - changed
Output schema / properties / series / items / properties / summary / descriptionPrevious value: -"Per-bucket statistics — present for hourly/daily, null for raw"New value: +"Per-bucket statistics — present for hourly/daily, null for raw. Every field is null in a gap bucket" - added
Output schema / properties / series / items / properties / value / anyOfAdded value: +[ + { + "type": "number" + }, + { + "type": "null" + } +] - changed
Output schema / properties / series / items / properties / value / descriptionPrevious value: -"Value for the bucket (the measurement for raw; the bucket aggregate for hourly/daily)"New value: +"Value for the bucket (the measurement for raw; the bucket aggregate for hourly/daily). Null for a gap bucket the sensor reported nothing into — the bucket is kept so the series stays evenly spaced on the time axis" - removed
Output schema / properties / series / items / properties / value / typeRemoved value: -"number" - changed
Output schema / properties / tableName / descriptionPrevious value: -"Canvas table name for the full series (e.g. \"measurements_1701\"). Reference it in SQL."New value: +"Canvas table name for the staged series (e.g. \"measurements_1701\"). Reference it in SQL." - changed
Output schema / properties / truncated / descriptionPrevious value: -"True when the series exceeded the inline limit and the full set was staged on canvasId. Absent/false when everything fit inline."New value: +"True when the series exceeded the inline limit, so series is a preview and the pulled rows were staged on canvasId. Absent/false when everything fit inline. It says nothing about whether the pull itself was complete — compare rowCount and totalCount, and read the notice."
2 tool updates
- Changed
openaq_find_locations1 field changed- added
Input schema / properties / pageAdded value: +{ + "default": 1, + "description": "Which page of results to return (1-based). Default 1. The only way past the 100-station cap: with limit 100, page 2 returns stations 101–200. Distance ordering applies within a page, not across pages, so paging is for iso/bbox sweeps — a near-me coordinates search should stay on page 1.", + "maximum": 9007199254740991, + "minimum": 1, + "type": "integer" +}
- Changed
openaq_list_countries1 field changed- added
Input schema / properties / parametersIdAdded value: +{ + "description": "Only return countries that measure this parameter id somewhere (e.g. 2 = PM2.5 µg/m³) — the one-call answer to \"which countries have NO2 monitoring?\". Get ids from openaq_list_parameters; the same pollutant has several ids for different units. Composes with query.", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer" +}
3 tool updates
- Changed
openaq_find_locations3 fields changed- added
Output schema / properties / noticeAdded value: +{ + "description": "Guidance when OpenAQ reports a lower-bound total without the result set hitting the limit.", + "type": "string" +} - changed
Output schema / properties / totalCount / descriptionPrevious value: -"Total matching stations before the limit."New value: +"Total matching stations before the limit. A floor (not an exact count) when totalCountIsLowerBound is true." - added
Output schema / properties / totalCountIsLowerBoundAdded value: +{ + "description": "True when OpenAQ reported a lower bound (\">N\"): totalCount is a floor and more stations match than the count shown.", + "type": "boolean" +}
- Changed
openaq_list_countries1 field changed- changed
Input schema / properties / query / descriptionPrevious value: -"Local case-insensitive filter on country code and name (e.g. \"united\", \"IN\", \"germany\"). The list is bounded (~153 countries); omit to list all. Filters the fetched list on our side, not an upstream search."New value: +"Case-insensitive filter over the bounded country catalog (~153) by code and name. A two-letter query is treated as an exact ISO 3166-1 alpha-2 code (e.g. \"US\" → United States); longer queries match as substrings (e.g. \"united\", \"germany\"). Omit to list all."
- Changed
openaq_list_parameters1 field changed- changed
Input schema / properties / query / descriptionPrevious value: -"Local case-insensitive filter on code, display name, and description (e.g. \"pm\" for particulates, \"ozone\", \"co\"). The full catalog is small (~44 entries); omit to list everything. This filters the fetched list on our side — it is not an upstream search."New value: +"Case-insensitive filter over the bounded parameter catalog (~44) by code, display name, and description (e.g. \"pm\" for particulates, \"ozone\", \"co\"). Omit to list everything."
7 tool updates
- First observed
openaq_dataframe_describe - First observed
openaq_dataframe_query - First observed
openaq_find_locations - First observed
openaq_get_measurements - First observed
openaq_get_readings - First observed
openaq_list_countries - First observed
openaq_list_parameters
Related MCP Connectors
OpenAQ MCP — global air-quality measurements via the OpenAQ v3 API.
Search NOAA climate stations and datasets, fetch historical weather observations.
Search NOAA CDO stations and datasets, fetch historical weather observations.
Access UK air quality data, monitoring sites, and hourly pollutant measurements across regions
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables querying global air-quality data from the OpenAQ API, including nearest-station readings, station discovery, latest pollutant values, and historical time series for sensors.19 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables querying EPA's Air Quality System for regulatory-grade ambient air data, including parameters, sample measurements, annual summaries, and monitor metadata.6 npmMIT
- AlicenseNot gradedqualityBmaintenanceAccess air quality data from Open-Meteo API, free and without authentication.10 npmMIT
- AlicenseAqualityBmaintenanceEnables querying Polish air-quality data from GIOŚ stations by providing tools to list stations, get sensor readings, and retrieve the composite air-quality index.4MIT
Glama MCP Gateway
Add one secure layer between your agents and this server.