latest_detections
Retrieve detections within a recent time window, sorted by occurrence time descending, to answer what happened recently. Supports severity filtering and result limits.
Instructions
Newest detections in a time window, sorted by occurTime descending. Use this - NOT raw incident_detections__list_detections_* - when answering 'what's the latest detection / what happened recently'. The raw list endpoints do NOT sort by date, so a first-page sort silently returns stale rows. This composite does v2→v1 fallback, paginates the time window, and sorts locally.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "latest_detections"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | Time window in hours back from now (default 24). | |
| limit | No | Number of newest detections to return (default 10). | |
| severity_min | No | Optional: filter to severity at or above this level. |