haldir_check_permission
Checks whether a session is authorized for a given scope and returns an allowed flag, so agents can gate risky tool calls before execution.
Instructions
Check whether a session is authorized for a given scope. Returns {allowed: bool} — call before a risky tool to gate it.
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": {
"session_id": "<session_id>",
"scope": "<scope>"
},
"name": "haldir_check_permission"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | ||
| session_id | Yes |