get_air_quality
Pack: science · Endpoint: https://gateway.pipeworx.io/science/mcp
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/get_air_quality for the schema, then POST the same URL with its arguments for the data.
Current air quality readings for a location, from Open-Meteo.
Tool description as the model sees it
Check current air quality at a latitude/longitude. Returns US AQI score and category plus PM2.5, PM10, ozone, NO2, and CO levels.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
latitude | number | yes | Latitude in decimal degrees, e.g. 40.7128. Required — this tool does not geocode city names. |
longitude | number | yes | Longitude in decimal degrees, e.g. -74.006. |
Example call
Arguments
{
"latitude": 40.7128,
"longitude": -74.006
}
curl
curl -X POST https://gateway.pipeworx.io/science/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_air_quality","arguments":{"latitude":40.7128,"longitude":-74.006}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_air_quality', {
"latitude": 40.7128,
"longitude": -74.006
});
More examples
{
"latitude": 51.5074,
"longitude": -0.1278
}
Response shape
| Field | Type | Description |
|---|---|---|
latitude | number | |
longitude | number | |
observed_at | string | |
us_aqi | number | |
aqi_category | string | |
pm2_5 | number | |
pm10 | number | |
ozone | number | |
nitrogen_dioxide | number | |
carbon_monoxide | number | |
units | object | |
source | string |
Full JSON Schema
{
"type": "object",
"properties": {
"latitude": {
"type": "number"
},
"longitude": {
"type": "number"
},
"observed_at": {
"type": "string"
},
"us_aqi": {
"type": "number"
},
"aqi_category": {
"type": "string"
},
"pm2_5": {
"type": "number"
},
"pm10": {
"type": "number"
},
"ozone": {
"type": "number"
},
"nitrogen_dioxide": {
"type": "number"
},
"carbon_monoxide": {
"type": "number"
},
"units": {
"type": "object",
"properties": {
"time": {
"type": "string"
},
"interval": {
"type": "string"
},
"us_aqi": {
"type": "string"
},
"pm10": {
"type": "string"
},
"pm2_5": {
"type": "string"
},
"carbon_monoxide": {
"type": "string"
},
"nitrogen_dioxide": {
"type": "string"
},
"ozone": {
"type": "string"
}
}
},
"source": {
"type": "string"
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"science": {
"url": "https://gateway.pipeworx.io/science/mcp"
}
}
}
See Getting Started for client-specific install steps.