get_device_history
Retrieve hourly readings for a specific air quality sensor over a chosen number of days, with min, max, and average summaries for trend analysis.
Instructions
Hourly records for a specific sensor over N days. Returns records plus min/max/avg summary.
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": {
"code": "<code>"
},
"name": "get_device_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Device code identifier | |
| days | No | Number of days back |