observe_query
Run raw OPAL pipeline queries on Observe datasets to retrieve filtered rows within a time range, returning results as text or JSON.
Instructions
Run a raw OPAL pipeline query against Observe. Returns up to rowCount rows.
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": {
"pipeline": "<pipeline>"
},
"name": "observe_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_time | No | ISO8601 end time. Defaults to now. | |
| pipeline | Yes | OPAL pipeline string, e.g. 'filter service = "api-server" | limit 50' | |
| raw_json | No | Return raw JSON instead of formatted text. Use only when you need structured data for further OPAL analysis. | |
| row_count | No | Max rows to return (default 200) | |
| start_time | No | ISO8601 start time. Defaults to 1 hour ago. | |
| dataset_path | No | Observe dataset path, e.g. 'Default.Logs'. Falls back to OBSERVE_DEFAULT_DATASET env var. |