query_logs
Query logs from Loki, Elasticsearch, or OpenSearch through n9e's log endpoint by passing datasource_id and an engine-specific query; time ranges over 7 days are rejected.
Instructions
Query logs from a datasource (Loki/ES/OS) via n9e's plugin-dispatched /logs-query endpoint. Pass 'body' as the n9e query payload (must include datasource_id and the engine-specific query). Time range > 7 days is rejected.
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": {
"body": "<body>"
},
"name": "query_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Optional Unix-second end (used only for range validation) | |
| body | Yes | Log query body (matches n9e's /logs-query payload) | |
| limit | No | Cap on returned lines (default 200) | |
| start | No | Optional Unix-second start (used only for range validation) |