Set who may connect to a database
set_database_accessReplace a Postgres database's allow list, at once. allowAnywhere (or an empty list) lets anyone with the password connect; otherwise only the listed IP addresses or networks (CIDR, e.g. "203.0.113.7" or "198.51.100.0/24"), plus the account's other services when allowServices is true. Anything not on the list is cut off, so check where the apps connect from first.
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": {
"id": "<id>"
},
"name": "set_database_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The database's service id, from list_services | |
| allowCidrs | No | IP addresses or CIDR networks | |
| allowAnywhere | No | ||
| allowServices | No | Let the account's other hosted services connect |