Disconnect database
disconnect_databaseClose an open database connection by alias, discard its cached schema, and remove generated table tools while preserving the database and other connections.
Instructions
Close the connection identified by alias, discard its cached schema, and remove the generated tools for that alias. Keeps the database and the other connections. Returns the closed alias. Use list_connections to select an open connection.
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": {
"alias": "<alias>"
},
"name": "disconnect_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | Yes | Open connection alias from list_connections. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||