redis_command
Execute a single Redis command with safety controls. Read-only commands run unconditionally; mutating commands require write permission; dangerous commands are blocked.
Instructions
Run a single Redis command through the safety gate. Read-only commands (GET, HGETALL, LRANGE, TYPE, TTL, INFO, ...) always run. Mutating commands (SET, DEL, EXPIRE, HSET, ...) require ALLOW_WRITES=1. KEYS is blocked (use redis_scan). Arbitrary-execution commands (EVAL, FUNCTION, SCRIPT, MULTI, MONITOR, SHUTDOWN, CLUSTER, ...) are never exposed, even with ALLOW_WRITES=1 -- the gate is a curated allowlist, not a blanket 'anything when writes are on'. Use this for commands without a dedicated tool; prefer the typed tools (redis_get, redis_scan, redis_key_info) where they exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Command arguments in order. For multi-word commands, the subcommand is the first arg. | |
| command | Yes | The Redis command verb (e.g. `GET`, `HGETALL`, `INFO`). |