b24_scope_gaps
Diagnose which Bitrix24 REST methods a webhook cannot reach by comparing granted scopes with the documented API, then identify missing scopes behind ACCESS_DENIED or ERROR_METHOD_NOT_FOUND.
Instructions
Diagnose what this webhook cannot reach, and why.
Reads the scopes actually granted and compares them against the full documented API. Use this when a call fails with ERROR_METHOD_NOT_FOUND or ACCESS_DENIED: on a live portal those two are easy to confuse with "the module is not installed", and they usually mean the scope was simply not ticked when the webhook was created.
Returns: JSON: {"granted_scopes": [...], "reachable_methods": , "blocked_methods": , "missing_scopes": {scope: method_count}, "hint": "..."}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "b24_scope_gaps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| webhook_url | No | Override the default incoming webhook for this call (https://<portal>/rest/<user_id>/<token>/). If omitted, uses personal_webhook, then the X-B24-Webhook HTTP header, then the BITRIX_WEBHOOK_URL env default. | |
| personal_webhook | No | Act as a specific user (their personal incoming webhook). Takes precedence over webhook_url. Required to write to the portal under that user's permissions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |