connect_db
Establish a connection to a PostgreSQL database by specifying host, user, password, and database name. Use when default connection fails or specific access is required.
Instructions
Connect to PostgreSQL database. NOTE: Default connection exists - only use when requested or if other commands fail
Input Schema
Name | Required | Description | Default |
---|---|---|---|
database | Yes | Database name | |
host | Yes | Database host | |
password | Yes | Database password | |
port | No | Database port (default: 5432) | |
user | Yes | Database user |
Input Schema (JSON Schema)
{
"properties": {
"database": {
"description": "Database name",
"type": "string"
},
"host": {
"description": "Database host",
"type": "string"
},
"password": {
"description": "Database password",
"type": "string"
},
"port": {
"description": "Database port (default: 5432)",
"type": "number"
},
"user": {
"description": "Database user",
"type": "string"
}
},
"required": [
"host",
"user",
"password",
"database"
],
"type": "object"
}