search_logs
Search an incident's logs by ID, query terms, level, and service for paginated, timestamp-ordered results with match totals. Use it to find relevant records; zero matches is not an error.
Instructions
Search one incident's logs. Read-only and paginated, in timestamp order.
No match is not an error: it returns total_matches 0. Each record carries its LOG- ID.
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": {
"incident_id": "<incident_id>"
},
"name": "search_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Minimum level: WARN also returns ERROR and FATAL. | |
| limit | No | ||
| query | No | Space-separated terms; all must appear (case-insensitive) in a record's message, service, level or attributes. Empty matches every record. | |
| offset | No | Pass next_offset to get the next page. | |
| service | No | Exact service name. | |
| incident_id | Yes | e.g. INC-0001 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | Yes | ||
| records | Yes | ||
| returned | Yes | ||
| incident_id | Yes | ||
| next_offset | Yes | ||
| total_matches | Yes |