redis_execute
Execute Redis write, delete, and admin commands while validating them against environment permissions and blocking forbidden command categories before dispatch.
Instructions
执行写入 / 删除 / 管理 / 高危命令(SET / HSET / DEL / EXPIRE / CONFIG / FLUSHALL 等)。这些命令会按当前连接的环境标识(测试库 / 正式库)对应的权限模板逐类校验,被禁类别在命令下发前就被拦下。返回包含 connection / env / envLabel / readOnly / allowedOps / operation / result。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "<command>"
},
"name": "redis_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 返回条目上限,默认 200,最大 2000 | |
| command | Yes | Redis 命令,如 'SET key value EX 60'、'HSET hash f v'、'DEL key1 key2' |