Request access to a connection
pg_request_accessRequest user approval before accessing a protected PostgreSQL connection such as production, showing the connection, server, and reason so access occurs only with explicit consent.
Instructions
Ask the user to approve the use of a protected connection (for example production).
Call this only when the user explicitly asked for that environment. The user sees a
dialog with the connection, the server and your reason. Never use a protected
connection as a fallback because another one failed.
user_requested_this_environment matters only for clients that cannot show dialogs:
set it to true only if the user named this environment in the conversation.
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": {
"connection": "<connection>",
"reason": "<reason>"
},
"name": "pg_request_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | ||
| connection | Yes | ||
| user_requested_this_environment | No |