beel_replace_member_grants
Replace a member's complete company grant list and access levels in one atomic call; omitted companies lose grants, and an empty list revokes all access.
Instructions
Sets the complete list of companies (NIFs) a MEMBER reaches, each with its
access_level, in one call. The response counts what changed.
Full replacement: the body is the member's whole set of grants after the call. A company the member had a grant over and that the body leaves out loses its grant; send
[]to revoke every grant.All or nothing: either every grant in the body is applied or none is. When a request is rejected, the member's grants stay exactly as they were.
One grant per company: each
company_idappears at most once ingrants.Eligible members: grants apply only to
MEMBER.OWNERandADMINreach every company implicitly and cannot receive grants.Repeatable: sending the same body again changes nothing and reports every grant as
unchanged.Single company: to change one grant without restating the rest, use
PUT /v1/accounts/{account_id}/members/{member_id}/grants/{company_id}.
BeeL API endpoint: PUT /v1/accounts/{account_id}/members/{member_id}/grants (reference: https://docs.beel.es)
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": {
"account_id": "<account_id>",
"member_id": "<member_id>",
"body": "<body>"
},
"name": "beel_replace_member_grants"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| member_id | Yes | Membership unique UUID. | |
| account_id | Yes | Your own account, or an account you provisioned. It — not the credential — decides which account the operation acts on; a `403` is returned when you do not reach it, the same response an account that does not exist gets. |