detectors
List or fetch OpenSearch Security Analytics detectors. Use 'list' to retrieve all detectors, or 'get' with a specific detector_id to retrieve a single one.
Instructions
List or fetch OpenSearch Security Analytics detectors.
Detection in Wazuh 5 lives in the indexer, not in the Engine. These detectors are what produces the documents in wazuh-findings-v5-*.
The plugin exposes no list-all endpoint, so list is implemented as
POST /_plugins/_security_analytics/detectors/_search with match_all. Detector
documents are nested under the detector path, which matters if you search
them by name.
Args: action: "list" for all detectors, "get" for a single one by id. detector_id: Required when action is "get". size: Maximum number of detectors to return for "list". Defaults to 50.
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": "detectors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| action | No | list | |
| detector_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |