Grant project access
grant_project_accessGrants one member direct access to one project at Read, Write or Admin, optionally until a date; granting again replaces their grant. Mirrors Grant access on a project's Access tab; needs project Admin on that project. Owners and Admins already reach every project and Billing none, so they cannot be granted.
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": {
"userId": "<userId>",
"level": "<level>"
},
"name": "grant_project_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | Yes | Read, Write or Admin. | |
| userId | Yes | The member's userId, as list_members or get_project_access returns it. | |
| project | No | The project's slug; omitted, the organization's only live project. | |
| expiresAt | No | When the grant ends, as an ISO 8601 date or time in the future; omitted, it never does. A date already past is refused. |