explain_spl
Validate SPL queries against safety rules without executing them or sending anything to Splunk, so you can confirm a search is safe before running it.
Instructions
Check an SPL query against the safety rules without running it.
Use this to validate a search before search. Nothing is sent to Splunk.
Args: spl: The SPL query to validate.
Returns {"ok": bool, "normalised": str | None, "reason": str | None}.
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": {
"spl": "<spl>"
},
"name": "explain_spl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spl | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||