switch_database
Switch the active connection to a specified database within the CockroachDB MCP Server. Input the database name to manage, monitor, or query data effectively.
Instructions
Switch the connection to a different database.
Args: database (str): Name of the database to switch to.
Returns: A success message or an error message.
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": "switch_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes |