List a device's events
list_device_eventsRetrieve one device's events, such as geofence entries and exits, alarms, and shipment updates, within a chosen time window. Filter by event type, geofence, or shipment and page through results.
Instructions
List a device's events
Returns one device's events (geofence enters and exits, alarms, shipment events) within a time
window: the list_events feed, scoped to one device.
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": {
"deviceId": "<deviceId>"
},
"name": "list_device_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, starting at 1. Must be at least 1. | |
| sort | No | Sort on event_at. Prefix with - for descending. Defaults to -event_at. | |
| deviceId | Yes | The device id, from `list_devices`. | |
| per_page | No | Results per page. Defaults to 50, capped at 100. Must be at least 1. Must not be greater than 100. | |
| event_type | No | Event type (e.g. geofence-exit, alarm-sos, shipment-late). Repeatable. Must not be greater than 128 characters. | |
| event_after | No | Start of the window on event_at. Defaults to 24 hours before event_before when both are omitted, or 30 days before event_before when only event_before is set. Must be a valid date. | |
| geofence_id | No | Restrict to events for one geofence. Must be at least 1. | |
| shipment_id | No | Restrict to events for one shipment. Must be at least 1. | |
| event_before | No | End of the window on event_at. Defaults to now when omitted, or 30 days after event_after when only event_after is set. Must be a valid date. Must be a date after or equal to <code>event_after</code>. |