query_logs
Fetch and filter log entries by text, severity, source, or time window, newest first, to inspect specific errors or recent activity.
Instructions
Fetch matching log entries, newest first. Use to inspect specific errors or recent activity. Call this when you need the actual log lines.
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": "query_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Case-insensitive substring match on the message. | |
| level | No | Filter by severity level. | |
| limit | No | Max rows to return (default 50, max 200). | |
| source | No | Source name from list_sources, e.g. 'app'. Omit to use all sources. | |
| minutes | No | Window size in minutes (default 60). Measured back from the newest entry in the loaded files. | |
| before_iso | No | Only entries before this ISO timestamp (cursor pagination). |