create_environment_scope
Creates a single permission scope in a Scalekit environment; duplicate names are rejected and a caller OAuth token is required.
Instructions
Create one permission scope in an environment. Use list_environment_scopes to see scopes that already exist. This tool does not create a role. Use create_environment_role for that. Requires the caller OAuth token. A duplicate scope name is rejected.
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": {
"environmentId": "<environmentId>",
"scopeName": "<scopeName>"
},
"name": "create_environment_scope"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scopeName | Yes | Permission scope name. Must be unique in that environment. | |
| description | No | Human-readable explanation of the scope. Empty when omitted. | |
| environmentId | Yes | Scalekit environment id. Format: env_<id>. |