grant_integration
Grant a consumer tenant or agent access to an integration, optionally limiting allowed operations and setting an expiry so permissions apply on the next call.
Instructions
Give a consumer access: integration_id, consumer_tenant_id, optional consumer_agent_id (absent = the whole company), allowed_operations (absent or empty = all operations) and expires_at (ISO 8601). The grant is created active and applies on the consumer's next call
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": {
"integration_id": "<integration_id>",
"consumer_tenant_id": "<consumer_tenant_id>"
},
"name": "grant_integration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expires_at | No | Optional expiry timestamp in ISO 8601 format | |
| integration_id | Yes | An integration owned by this tenant | |
| consumer_agent_id | No | Restrict access to one consumer agent; omit for the entire consumer tenant | |
| allowed_operations | No | Allowed operation names, such as tools or endpoints | |
| consumer_tenant_id | Yes | Tenant receiving access |