Update a custom role
team_update_roleUpdate a customer-owned role's display name, description, or scope set. Scope changes invalidate sessions for all users holding that role.
Instructions
Update the display name, description, and/or scope set of a customer-owned role. System roles are immutable. HIGH IMPACT when changing scopes: session invalidation fans out to every user holding the role. Only provided fields are changed. Use acct_list_scopes to discover valid scopes. Requires the team:write scope.
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": {
"customer_id": "<customer_id>",
"role_id": "<role_id>"
},
"name": "team_update_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scopes | No | Replacement scope set, e.g. ['team:read', 'billing:read']. Replaces the role's entire scope list and invalidates sessions of affected users. | |
| role_id | Yes | Role UUID (find it via team_list_roles) | |
| customer_id | Yes | Your customer UUID (shown in the WARP portal under Settings) | |
| description | No | New free-text description of the role's purpose | |
| display_name | No | New human-readable role name |