grant_scope
Grant a read, push, release, or admin capability on a scope key to a tenant or team, with optional expiry. Enables scoped access control in Kiln Business organisations.
Instructions
Grant capability on scope_key to a tenant OR a team.
Needs the organisation to be on Kiln Business.
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": {
"org_id": "<org_id>",
"scope_key": "<scope_key>",
"capability": "<capability>",
"granted_by": "<granted_by>"
},
"name": "grant_scope"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ask_id | No | The id an earlier ``APPROVAL_REQUIRED`` answer returned. Pass it on the repeat call to learn whether the person approved; omit it on the first call. | |
| org_id | Yes | The org the grant is made in. | |
| team_id | No | The team that receives the grant, for every current and future member. Give exactly one of ``tenant_id`` and ``team_id``. | |
| scope_key | Yes | What the grant covers, for example ``design:<id>``, ``branch:<id>`` or ``*`` for every artifact in the org. | |
| tenant_id | No | The account that receives the grant. Give exactly one of ``tenant_id`` and ``team_id``. | |
| capability | Yes | What the grant allows: ``"read"``, ``"push"``, ``"release"`` or ``"admin"`` (which implies the others). Any other value is refused. | |
| expires_at | No | When the grant stops applying, in Unix epoch seconds. Omit it for a grant that does not expire. | |
| granted_by | Yes | Who is making the grant, recorded on it. On Kiln's hosted server it is read from the signed-in session. |