get_device_data
Retrieve raw metric samples for a device datasource instance, like CPU, memory, or disk usage, over a specified time range. Use device_datasource_id from get_device_datasources.
Instructions
Get the raw metric values (samples) of a device/resource datasource instance, such as CPU, memory or disk usage
Common mistakes: Returns the last hour unless start_time or end_time is given. Requires device_datasource_id (from get_device_datasources) not the datasource definition ID.
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": {
"device_id": "<device_id>",
"device_datasource_id": "<device_datasource_id>",
"instance_id": "<instance_id>"
},
"name": "get_device_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_time | No | End time in epoch seconds (optional) | |
| device_id | Yes | Device ID | |
| datapoints | No | Comma-separated datapoint names (optional, all if omitted) | |
| start_time | No | Start time in epoch seconds (optional) | |
| instance_id | Yes | Instance ID | |
| device_datasource_id | Yes | Device-DataSource ID (from get_device_datasources) |