Log context
get_log_contextShows log entries immediately before and after a given timestamp across all levels, so you can see what led up to an error and what happened next.
Instructions
Show the log entries immediately before and after a point in time, across all levels. Use it to see what led up to an error and what happened next.
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": {
"timestamp": "<timestamp>"
},
"name": "get_log_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Entries to show after the timestamp (default 10) | |
| before | No | Entries to show before the timestamp (default 10) | |
| source | No | Only include entries whose source name contains this text | |
| minLevel | No | Hide entries below this level (default trace, i.e. show everything) | |
| timestamp | Yes | Point in time to centre on (e.g. an error's timestamp) (ISO 8601, e.g. 2026-02-10T08:00:00Z) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | Yes | ||
| before | Yes | ||
| timestamp | Yes |