Node Keyspace Sample
node_keyspace_sampleSamples Redis/Valkey keyspace metadata on one ElastiCache node using bounded SCAN to identify big, hot, cold, TTL, and prefix-level patterns without reading values.
Instructions
Big keys, hot (LFU) or cold keys, type mix, TTL coverage, per-prefix bytes from a bounded SCAN. Metadata only, never values. partial=true at max_seconds. Cluster mode: this node only (see node_cluster_keyspace_sample). include_access adds the idle-key share; include_sizes flags large collections.
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": "node_keyspace_sample"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| match | No | SCAN MATCH glob, e.g. 'session:*' | |
| pause_ms | No | Sleep between SCAN batches | |
| scan_count | No | SCAN COUNT hint | |
| max_seconds | No | Wall-clock budget; returns partial=true when exceeded | |
| sample_size | No | Max keys to inspect | |
| top_prefixes | No | Key prefixes to report | |
| include_sizes | No | Add a collections block: key prefixes whose collections exceed size_threshold elements | |
| include_access | No | Add an access block: share of sampled keys idle over 7 days (OBJECT IDLETIME) or with a cold LFU counter (OBJECT FREQ), with an eviction-risk hint | |
| size_threshold | No | Element count above which a collection is flagged |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||