Get Detections
get_detectionsList detection logic in SPL, KQL, or Sigma, with optional filtering by threat ID or detection type. Paginated results include next_cursor to page through large sets.
Instructions
List detection logic (Splunk SPL, Microsoft KQL, Sigma). Optionally filter by threat_id or detection type. Paginated: pass limit (default 15, max 100) and offset to page; the result includes has_more and an opaque next_cursor (reusable as offset/cursor).
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": "get_detections"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Detection type: spl, kql, or sigma | |
| limit | No | Max results (default 15, max 100) | |
| cursor | No | Opaque pagination cursor (next_cursor from a prior result). Decoded to an offset; ignored when offset is given. | |
| offset | No | Row offset for pagination (default 0). Or pass cursor from a prior result. | |
| threat_id | No | Filter detections for a specific threat ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| total | No | Total matching rows, when the handler reports one. | |
| has_more | No | True when another page may exist. | |
| next_cursor | No | Opaque cursor for the next page, or null when this is the last page or the endpoint ignores offset. |