connect_database
Connect to PostgreSQL, MySQL, SQLite, DuckDB, MSSQL, or Oracle so an AI assistant can query it with schema discovery and safety controls.
Instructions
Connect to a 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": {
"id": "<id>",
"type": "<type>"
},
"name": "connect_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Connection ID | |
| env | No | Environment label | |
| ssl | No | Use SSL | |
| host | No | Hostname | |
| name | No | Friendly name | |
| path | No | File path (SQLite, DuckDB) | |
| port | No | Port | |
| type | Yes | Database type | |
| user | No | Username | |
| database | No | Database name | |
| password | No | Password | |
| readOnly | No | Read-only mode |