Skip to main content
Glama
BeeL MCP server

BeeL MCP server

Official
by beel-es

beel_replace_member_grants

DestructiveIdempotent

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_id appears at most once in grants.

  • Eligible members: grants apply only to MEMBER. OWNER and ADMIN reach 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

NameRequiredDescriptionDefault
bodyYes
member_idYesMembership unique UUID.
account_idYesYour 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.12.0

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructive=true and idempotent=true, but the description goes well beyond them: it explains exactly what is destroyed (a company omitted from the body loses its grant, `[]` revokes everything), the all-or-nothing atomicity guarantee on rejection, and that repeats report every grant as `unchanged`. The 422 VALIDATION_ERROR behavior on a missing or null `grants` key is disclosed too, which is precisely the kind of failure mode an agent needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core semantics in one sentence, then five bold-labelled bullets that each carry a distinct, non-redundant behavior. No filler sentences; even the endpoint line anchors the reader to the underlying API for reference.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, nested-body, 3-parameter tool with no output schema, the definition covers mutation scope, atomicity, idempotency, eligibility, and error behavior, and briefly notes that 'the response counts what changed'. There is no meaningful gap left for an agent to guess at.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

At 67% schema coverage the description adds real meaning for the `grants` body: whole-set replacement, at most one entry per `company_id`, and `[]` to revoke all. `account_id` and `member_id` are left to the schema, which already documents them, so nothing important is missing, though the description could have reinforced which account the credential scoping applies to.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — 'Sets the complete list of companies (NIFs) a MEMBER reaches, each with its access_level, in one call' — which is unmistakably a bulk grant replacement. It also explicitly distinguishes itself from the single-grant sibling operation (PUT .../grants/{company_id}), so an agent can route between the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use and when-not-to-use guidance: use this for full replacement, use the per-company endpoint 'to change one grant without restating the rest'. It also names the eligibility boundary ('grants apply only to MEMBER; OWNER and ADMIN reach every company implicitly and cannot receive grants'), which prevents a whole class of wrong invocations.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools