Switch current database
switch_databaseSwitches the active PostgreSQL database to the specified one; if the change fails, it automatically reverts to the previous database.
Instructions
Switches the active database to the specified one. If an error occurs during the switch, the system automatically reverts back to the previous active database
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_name": "<database_name>"
},
"name": "switch_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database_name | Yes | Name of the database to switch to. |