connect_database
Connect to a SQLite or PostgreSQL database using a connection URI or file path to start exploring and querying data.
Instructions
Connect to a SQLite or PostgreSQL database. For SQLite, connection_string can be a file path (e.g. 'dev.db') or ':memory:'. For Postgres, connection_string must be a valid PostgreSQL connection URI. Resolves relative paths for SQLite databases against the current working directory.
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": {
"db_type": "<db_type>",
"connection_string": "<connection_string>"
},
"name": "connect_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db_type | Yes | The type of database engine. | |
| connection_string | Yes | Connection URI or file path to connect to. |