connect_db
Connect to a PostgreSQL database using host, user, password, and database to enable schema inspection and validated read/write operations.
Instructions
Connect to PostgreSQL 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": {
"host": "<host>",
"user": "<user>",
"password": "<password>",
"database": "<database>"
},
"name": "connect_db"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Database host | |
| port | No | Database port (default: 5432) | |
| user | Yes | Database user | |
| database | Yes | Database name | |
| password | Yes | Database password |