analyze_slowlog
Analyze Redis SLOWLOG to identify slow commands, detect dangerous O(N) operations, and get safer alternatives for latency hotspots.
Instructions
Analyze Redis SLOWLOG to find slow commands. Detects dangerous O(N) commands (KEYS, SMEMBERS, HGETALL, LRANGE, SORT, FLUSHDB, FLUSHALL), identifies latency hotspots, and recommends safer alternatives (SCAN, SSCAN, HSCAN, bounded ranges, sorted sets).
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": "analyze_slowlog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of slowlog entries to retrieve (default: 128) |