redis_big_keys
Samples largest Redis keys by memory usage using a budgeted SCAN, reporting partial coverage to diagnose memory pressure without blocking production.
Instructions
[READ] SCAN-budgeted big-key sample — largest sampled keys first.
Walks at most 10,000 keys with SCAN and sizes at most 200 of them with MEMORY USAGE (never KEYS *), so it is safe on a production instance; coveragePct reports how partial the sample is.
Args: top: How many key rows to return, largest first (default 20). target: redis target name from config; omit for the default.
Returns an envelope: {"topKeys": [...], "returned": N, "limit": L, "truncated": bool}. When "truncated" is true there is more than was returned — do not treat this as the complete set.
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": "redis_big_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| target | No |