pg_set_profile
Switch the active PostgreSQL connection profile to dev, qa, or default so later queries automatically use the selected environment without re-entering credentials.
Instructions
Set the sticky session connection profile to "dev" or "qa" (or "default"). Call when the user says pgprofile=dev, pgprofile=qa, use Dev DB, switch to QA, etc. Later tools reuse this profile automatically — no host/password in chat. Credentials are loaded from PG_DEV_* / PG_QA_* in mcp.json.
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": {
"profile": "<profile>"
},
"name": "pg_set_profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| verify | No | If true (default), run SELECT 1 against the new profile | |
| profile | Yes | Target profile: "dev" | "qa" | "default" (aliases: development, uat) |