get_errors
Retrieve detailed error logs from OpenSearch or local JSON files, including stack traces, log bodies, and pod information for troubleshooting non-200 responses.
Instructions
Get full detail for non-200 responses (errors). Shows stack traces, log bodies, pod info — everything needed for troubleshooting.
Args: path: Path to local OpenSearch JSON file. index: OpenSearch index to query (requires OPENSEARCH_URL env). query: Additional Lucene query for API mode. time_from: ISO timestamp lower bound. time_to: ISO timestamp upper bound. limit: Max error entries to return (default 20). context_before: Number of log entries to show before each error (default 0). Set to 20 to see what happened leading up to the error.
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": "get_errors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| index | No | ||
| limit | No | ||
| query | No | ||
| time_to | No | ||
| time_from | No | ||
| context_before | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |