Switch Database
use_databaseSwitch the active database on the current server immediately, without restart, to browse and query different data sets in read-only mode.
Instructions
Switch the active database on the current server. Takes effect immediately, no restart needed
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": {
"database": "<database>"
},
"name": "use_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | Database name to switch to, or the database number on Redis |