Roles: create
roles_createCreate a project role with optional API access; it starts without entity permissions until actions are granted, then assign its ID when inviting users.
Instructions
Create a new role. Adds a role with API access on (set api_access false to turn it off) and no entity permissions yet, so its users can't reach any data until you grant actions with roles_permissions_add. Then give it to people by passing its id as role_id to users_invite. Role names must be unique in the project.
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": {
"name": "<name>"
},
"name": "roles_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Role name | |
| api_access | No | Let the role's users reach data through the API (true/false, default true). Entity permissions only apply when this is on | |
| description | No | Optional description |