get_logs_around
Retrieve log records surrounding a specific timestamp to view context around an event without writing SQL queries.
Instructions
Fetch log records immediately before and after a specific timestamp in a stream. Returns up to size records centered on the anchor timestamp. Useful for viewing the context surrounding a known event without writing a SQL query.
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": {
"instance": "<instance>",
"stream": "<stream>",
"timestamp": "<timestamp>"
},
"name": "get_logs_around"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Total number of records to return around the anchor | |
| stream | Yes | Stream name to search | |
| instance | Yes | Instance ID to query | |
| timestamp | Yes | Anchor timestamp (ISO 8601 or Unix ms) |