get_largest_keys
Retrieve the largest keys by memory usage from key analytics to identify memory hogs, bloated hashes, or candidates for TTL/eviction. Requires BetterDB Pro.
Instructions
Get the largest keys from key analytics snapshots, ranked by measured memory usage. Coverage note: snapshots track the biggest collections by element count, so a memory-heavy key with few elements may not be tracked. Companion to get_hot_keys, which ranks by access frequency. Use to find memory hogs, bloated hashes/sets, or candidates for TTL/eviction. Requires BetterDB Pro (keyAnalytics).
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": "get_largest_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max keys to return (default 50) | |
| endTime | No | End time (Unix timestamp ms) | |
| startTime | No | Start time (Unix timestamp ms) | |
| instanceId | No | Optional instance ID override |