Set Env Role
set_env_roleAssign a user role in a specific environment to manage permissions. Idempotent operation ensures consistent, duplicate-free updates.
Instructions
Set a user's role for a specific environment. Idempotent.
Args:
userID (string, required): The user ID
environmentID (string, required): The environment ID
role (string, required): Role to assign
Returns: Updated role assignment.
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>",
"environmentID": "<environmentID>",
"role": "<role>"
},
"name": "set_env_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | The environment role to assign (e.g., 'admin', 'developer', 'viewer') | |
| userID | Yes | The user ID | |
| environmentID | Yes | The environment ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| name | No | ||
| message | No |