gateway_admin_grant_scope
Grant or deny a Gateway access scope by specifying subject type, key, and scope name. Use dry-run mode to preview changes before applying, with optional reason and expiration.
Instructions
Grant or deny a Gateway scope through Postgres. Requires access:admin; dry_run defaults to true.
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": {
"subject_type": "<subject_type>",
"subject_key": "<subject_key>",
"scope_name": "<scope_name>"
},
"name": "gateway_admin_grant_scope"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| effect | No | allow | |
| reason | No | ||
| dry_run | No | ||
| ttl_days | No | ||
| scope_name | Yes | ||
| subject_key | Yes | ||
| subject_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |