log_analyzer
Analyze a log file. POST raw log text (or an upload_id from the create_upload tool, up to 5MB) and get: level breakdown + time range, error clusters (messages normalized so variable ids/numbers collapse into one signature, with counts + first/last seen + a sample), a timeline, detected anomalies (error spikes, retry storms, new error signatures, log gaps/outages, level-ratio shifts) with evidence, and templated recommendations. Handles JSON-lines and plain formats (ISO8601/syslog/CLF/epoch timestamps). Deterministic, single-pass, no LLM.
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": "log_analyzer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Raw log content (up to 1M chars). | |
| top_n | No | Top clusters to return (1-50, default 10). | |
| format | No | Default "auto" (detected). json = one JSON object per line. | |
| upload_id | No | Alternative: a log file uploaded via the create_upload tool. |