redis_context
View the current Redis connection, environment, database, allowed operations, and saved connections, or switch to another database or saved connection for the active MCP process.
Instructions
查看或切换上下文。不带参数:返回当前连接、环境标识、库序号、该环境放行的操作类别、已保存连接列表。传 database:切换到指定库序号(范围取自实例的 databases 配置)。传 connection:切换到已保存的连接并重新建连。切换只会影响当前 MCP 进程,不会改变连接的环境标识。
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_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | 要切换到的库序号,从 0 开始 | |
| connection | No | 要切换到的已保存连接名 |