Skip to main content
Glama
BeeL MCP server

BeeL MCP server

Official
by beel-es

beel_create_invitation

DestructiveIdempotent

Creates a single-use invitation for someone to join an account with a specified role, optional company grants, and an optional email delivery; returns a one-time token and invite link.

Instructions

Creates a single-use invitation for a person to join the account with the given account_role.

  • token: the acceptance secret, returned once and never readable again, so deliver it to the invitee. invitation_url is the ready-to-use link built from that same token.

  • grants: the companies a MEMBER starts with. Omit it, or send [], to invite them with no company access yet; an explicit null is rejected with 422. Grants are only valid for MEMBER, since OWNER and ADMIN reach every company implicitly.

  • account_role: OWNER cannot be invited. An account has exactly one owner, handed over only through PUT /v1/accounts/{account_id}/owner.

  • send_email: defaults to false, so BeeL sends no email and you deliver the token or invitation_url yourself. Set it to true to have the invitation emailed to invited_email as well.

BeeL API endpoint: POST /v1/accounts/{account_id}/invitations (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>",
      "body": "<body>"
    },
    "name": "beel_create_invitation"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
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.
idempotency_keyNoOptional idempotency key for this operation. Omit it and one is derived from the request itself, which makes a blind retry safe but also collapses a SECOND, deliberately identical operation into the first for 24 hours. Set it — to an order id, or anything unique per intended operation — whenever you mean to create something that may look identical to what you just created.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.12.0
    • addedInput schema / $defs / CreateInvitationRequest / properties / invited_email / allOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/Email"
      +  }
      +]
    • removedInput schema / $defs / CreateInvitationRequest / properties / invited_email / format
      Removed value: -"email"
    • removedInput schema / $defs / CreateInvitationRequest / properties / invited_email / minLength
      Removed value: -1
    • removedInput schema / $defs / CreateInvitationRequest / properties / invited_email / type
      Removed value: -"string"
    • addedInput schema / $defs / Email
      Added value: +{
      +  "description": "Email address (minimum valid email is 5 chars, e.g. a@b.co)",
      +  "maxLength": 255,
      +  "minLength": 5,
      +  "pattern": "^[^@ \\t\\n\\x0B\\f\\r\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000\\uFEFF()<>,;:\"\\\\]+@[^@ \\t\\n\\x0B\\f\\r\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000\\uFEFF()<>,;:\"\\\\]+\\.[^@ \\t\\n\\x0B\\f\\r\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000\\uFEFF()<>,;:\"\\\\]+$",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.10.0
    • addedInput schema / properties / body / type
      Added value: +"object"
  3. Changed3 schema fields changedv0.9.0
    • changedInput schema / $defs / CreateInvitationRequest / properties / grants / description
      Previous value: -"Initial grants (only when `account_role` is `MEMBER`). Required: send `[]` to invite with no company access yet (granted later). An explicit `null` is rejected with 400."New value: +"Initial grants (only when `account_role` is `MEMBER`). Omit it, or send `[]`, to invite with no company access yet (granted later). An explicit `null` is rejected with `422` `VALIDATION_ERROR`."
    • addedInput schema / $defs / CreateInvitationRequest / properties / grants / x-field-extra-annotation
      Added value: +"@jakarta.validation.constraints.NotNull"
    • changedInput schema / $defs / CreateInvitationRequest / required
      Previous value: -[
      -  "invited_email",
      -  "account_role",
      -  "grants"
      -]New value: +[
      +  "invited_email",
      +  "account_role"
      +]
  4. Changed5 schema fields changedv0.5.0
    • changedInput schema / $defs / AccountRole / description
      Previous value: -"Who administers the account. Independent of `access_level`, which says how much access someone has to a given company (NIF).\n\n`OWNER` — full control, including billing, API keys and transferring ownership. Exactly one per account, so it is never an accepted value when you SET a role (inviting a member or changing one's role): both reject it with `422 OWNER_ROLE_NOT_ASSIGNABLE`. Ownership moves only through `PUT /v1/accounts/{account_id}/owner`.\n`ADMIN` — everything an `OWNER` can do, except transferring ownership.\n`MEMBER` — no account administration. Access to each company is granted individually and reported as `access_level`; a member only sees the companies granted to them."New value: +"Who administers the account. Independent of `access_level`, which says how much access someone has to a given company.\n\n`OWNER` — full control, including billing, API keys and transferring ownership. Exactly one per account, so it is never an accepted value when you SET a role (inviting a member or changing one's role): both reject it with `422 OWNER_ROLE_NOT_ASSIGNABLE`. Ownership moves only through `PUT /v1/accounts/{account_id}/owner`.\n`ADMIN` — everything an `OWNER` can do, except transferring ownership.\n`MEMBER` — no account administration. Access to each company is granted individually and reported as `access_level`; a member only sees the companies granted to them."
    • addedInput schema / $defs / CreateInvitationRequest / additionalProperties
      Added value: +false
    • addedInput schema / $defs / GrantAssignment / additionalProperties
      Added value: +false
    • changedInput schema / $defs / GrantAssignment / properties / company_id / description
      Previous value: -"Company (NIF) identifier within the account."New value: +"Unique identifier (UUID) of the company within the account."
    • addedInput schema / additionalProperties
      Added value: +false
  5. First observedv0.3.1

TDQS

A4/5.0
Behavior4/5

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

Adds real context beyond the annotations: the `token` is returned once and never readable again, `invitation_url` is derived from it, null grants produce a 422, OWNER invites are rejected. It does not address the annotated destructiveHint=true (that revoking is handled elsewhere) or the idempotency behavior beyond what the schema already states, leaving a small gap on a write tool.

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

Conciseness4/5

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

The core action is stated first, followed by a scannable bullet list keyed to the field names an agent will actually set. A few bullets repeat the nested schema's own prose (grants, send_email), which is minor waste but not bloat.

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

Completeness4/5

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

With no output schema, the description usefully discloses the two return fields an agent must handle (token, invitation_url) and the delivery semantics of send_email, plus key 422 failure modes. Only the idempotency implications of a create call are left implicit, which the schema does cover.

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 carries meaningful weight: it explains the null-vs-empty-array distinction for grants, the MEMBER-only constraint on grants, the send_email default consequence, and why OWNER is not assignable. Much of this restates the $defs text, and account_id and idempotency_key are left entirely to the schema, so it falls short of fully compensating.

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

Purpose4/5

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

Opens with a specific verb+resource+scope: 'Creates a single-use invitation for a person to join the account with the given `account_role`.' That is enough to separate it from beel_get_invitation and beel_delete_invitation, but the description never names those siblings explicitly, so an agent must infer the boundary rather than read it.

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

Usage Guidelines4/5

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

Gives concrete selection rules at the parameter level: use send_email=false when you will deliver the link yourself, omit grants or send [] instead of null, only pass grants for MEMBER, and OWNER is rejected — ownership moves via `PUT /v1/accounts/{account_id}/owner`. It lacks explicit tool-level 'use this instead of X' framing, but the conditional guidance is genuinely actionable.

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