Skip to main content
Glama
BeeL MCP server

BeeL MCP server

Official
by beel-es

beel_patch_webhook_subscription

Destructive

Updates a webhook subscription's URL, event list, active status, or account relationship while leaving unspecified fields unchanged.

Instructions

Updates the fields present in the body — url, events, active, account_relationship — and leaves the rest untouched.

  • events: replaces the whole list, it does not add to it, so an event left out of it stops being delivered.

  • active: setting it to false stops deliveries without discarding the delivery history. A subscription we turned off ourselves (deactivated_by: beel) needs a successful test delivery before it can be turned back on. Turning a subscription back on counts towards the limit of 10 active subscriptions, and is rejected with 400 WEBHOOK_ACTIVE_SUBSCRIPTION_LIMIT_REACHED when ten are already active.

  • Read scope: any change to a subscription to connection.* requires connections:read, and to invoice.reply.* invoice-replies:read, whichever field changes.

  • Signing secret: not touched here. Rotate it with POST /v1/accounts/{account_id}/webhooks/{webhook_id}/secret.

BeeL API endpoint: PATCH /v1/accounts/{account_id}/webhooks/{webhook_id} (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>",
      "webhook_id": "<webhook_id>",
      "body": "<body>"
    },
    "name": "beel_patch_webhook_subscription"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
account_idYesYour own account, or an account you provisioned. It — not the credential, and not the `BeeL-Active-Company` header — decides which account the operation acts on. An account you do not reach answers `403`, and so does an account that does not exist, so the existence of somebody else's account is never disclosed.
webhook_idYesSubscription of the account in the path. A subscription of another account answers `404`, the same as one that does not exist: under the account resolved from `{account_id}` it simply is not there.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.12.0
    • changedInput schema / $defs / WebhookEventTypeEnum / description
      Previous value: -"Available webhook event types:\n- `invoice.issued` — Invoice issued and finalized\n- `invoice.email.sent` — Invoice sent by email\n- `invoice.pdf.generated` — The PDF of an invoice was (re)rendered, so any copy you cached\n  is stale; fetch it again from the PDF endpoint\n- `invoice.voided` — Invoice voided\n- `recurring_invoice.paused` — A schedule stopped generating on its own (downgrade or a\n  permanent generation failure); the invoice it was going to issue will not arrive\n- `invoice.schedule_failed` — A scheduled invoice could not be issued on its date and BeeL.\n  gave up retrying; it stays in drafts and can be issued by hand once the cause is fixed\n- `verifactu.status.updated` — VeriFactu public status changed (see `VeriFactuSubmissionStatus`)\n- `account.claimed` — A provisioned account was claimed by its holder\n- `company.created` — A company was created inside a provisioned account\n- `representation.signed` — Fiscal representation signed for a NIF (production invoicing enabled)\n\nThe `account.*` events are delivered only to the **provisioner** that created the\naccount; a subscription on any other account never receives them.\n"New value: +"Available webhook event types:\n- `invoice.issued` — Invoice issued and finalized\n- `invoice.email.sent` — Invoice sent by email\n- `invoice.pdf.generated` — The PDF of an invoice was (re)rendered, so any copy you cached\n  is stale; fetch it again from the PDF endpoint\n- `invoice.voided` — Invoice voided\n- `recurring_invoice.paused` — A schedule stopped generating on its own (downgrade or a\n  permanent generation failure); the invoice it was going to issue will not arrive\n- `invoice.schedule_failed` — A scheduled invoice could not be issued on its date and BeeL.\n  gave up retrying; it stays in drafts and can be issued by hand once the cause is fixed\n- `verifactu.status.updated` — VeriFactu public status changed (see `VeriFactuSubmissionStatus`)\n- `invoice.compliance.updated`: The standing of an invoice with one tax system changed (its\n  `status`, `system_status` or `stamps` in `compliance`), for every system, VeriFactu included\n- `account.claimed` — A provisioned account was claimed by its holder\n- `company.created` — A company was created inside a provisioned account\n- `representation.signed` — Fiscal representation signed for a NIF (production invoicing enabled)\n- `email_domain.verified` — A sending domain of the account became `VERIFIED`; sent once per transition\n- `email_domain.failed` — A sending domain of the account became `FAILED`; sent once per transition\n- `email_domain.removed` — A sending domain of the account was removed, with a `reason` (`EXPIRED`,\n  `DELETED_BY_USER` or `DELETED_AT_PROVIDER`); sent once per removal\n- `connection.connected` — A service of a company was connected\n- `connection.disconnected` — A service of a company was disconnected; sent once\n- `invoice.reply.received` — A customer replied about an invoice, on any channel\n- `invoice.reply.deleted` — The company deleted a reply about an invoice; sent once\n- `invoice.email.bounced` — The email of an invoice bounced or was marked as spam, with a `reason`\n  (`BOUNCED` or `COMPLAINED`); sent once per email\n- `automation.approval.requested` — An automation run waits for a person to approve its draft invoices\n- `automation.approval.expiring` — A pending approval is about to expire; sent once\n- `automation.approval.resolved` — An approval was closed (`approved`, `rejected`, `expired` or `stale`)\n\nThe `email_domain.*` events belong to the account: they are delivered only to its live\nendpoints, never to the account that manages it, and `company_id` and `nif` are not set (absent or `null`).\n\nThe `automation.approval.*` events belong to the account: they are delivered only to the endpoints of the\naccount that owns the automation, never to the account that manages it, and `company_id` and `nif` are not set.\nSubscribing to them needs the `automations:read` scope.\n\nThe `connection.*` and `invoice.reply.*` events are delivered only to the endpoints of the account that\nowns the company, never to an account that manages it.\n\nThe `account.*` events are delivered only to the **provisioner** that created the\naccount; a subscription on any other account never receives them.\n"
    • changedInput schema / $defs / WebhookEventTypeEnum / enum
      Previous value: -[
      -  "invoice.issued",
      -  "invoice.email.sent",
      -  "invoice.pdf.generated",
      -  "invoice.voided",
      -  "recurring_invoice.paused",
      -  "invoice.schedule_failed",
      -  "verifactu.status.updated",
      -  "account.claimed",
      -  "company.created",
      -  "representation.signed"
      -]New value: +[
      +  "invoice.issued",
      +  "invoice.email.sent",
      +  "invoice.pdf.generated",
      +  "invoice.voided",
      +  "recurring_invoice.paused",
      +  "invoice.schedule_failed",
      +  "verifactu.status.updated",
      +  "invoice.compliance.updated",
      +  "account.claimed",
      +  "company.created",
      +  "representation.signed",
      +  "email_domain.verified",
      +  "email_domain.failed",
      +  "email_domain.removed",
      +  "connection.connected",
      +  "connection.disconnected",
      +  "invoice.reply.received",
      +  "invoice.reply.deleted",
      +  "invoice.email.bounced",
      +  "automation.approval.requested",
      +  "automation.approval.expiring",
      +  "automation.approval.resolved"
      +]
  2. Changed1 schema field changedv0.10.0
    • addedInput schema / properties / body / type
      Added value: +"object"
  3. Changed2 schema fields changedv0.9.0
    • changedInput schema / $defs / WebhookEventTypeEnum / description
      Previous value: -"Available webhook event types:\n- `invoice.issued` — Invoice issued and finalized\n- `invoice.email.sent` — Invoice sent by email\n- `invoice.voided` — Invoice voided\n- `recurring_invoice.paused` — A schedule stopped generating on its own (downgrade or a\n  permanent generation failure); the invoice it was going to issue will not arrive\n- `verifactu.status.updated` — VeriFactu status changed (see `VeriFactuSubmissionStatus`)\n- `account.claimed` — A provisioned account was claimed by its holder\n- `company.created` — A company was created inside a provisioned account\n- `representation.signed` — Fiscal representation signed for a NIF (production invoicing enabled)\n\nThe `account.*` events are delivered only to the **provisioner** that created the\naccount; a subscription on any other account never receives them.\n"New value: +"Available webhook event types:\n- `invoice.issued` — Invoice issued and finalized\n- `invoice.email.sent` — Invoice sent by email\n- `invoice.pdf.generated` — The PDF of an invoice was (re)rendered, so any copy you cached\n  is stale; fetch it again from the PDF endpoint\n- `invoice.voided` — Invoice voided\n- `recurring_invoice.paused` — A schedule stopped generating on its own (downgrade or a\n  permanent generation failure); the invoice it was going to issue will not arrive\n- `invoice.schedule_failed` — A scheduled invoice could not be issued on its date and BeeL.\n  gave up retrying; it stays in drafts and can be issued by hand once the cause is fixed\n- `verifactu.status.updated` — VeriFactu public status changed (see `VeriFactuSubmissionStatus`)\n- `account.claimed` — A provisioned account was claimed by its holder\n- `company.created` — A company was created inside a provisioned account\n- `representation.signed` — Fiscal representation signed for a NIF (production invoicing enabled)\n\nThe `account.*` events are delivered only to the **provisioner** that created the\naccount; a subscription on any other account never receives them.\n"
    • changedInput schema / $defs / WebhookEventTypeEnum / enum
      Previous value: -[
      -  "invoice.issued",
      -  "invoice.email.sent",
      -  "invoice.voided",
      -  "recurring_invoice.paused",
      -  "verifactu.status.updated",
      -  "account.claimed",
      -  "company.created",
      -  "representation.signed"
      -]New value: +[
      +  "invoice.issued",
      +  "invoice.email.sent",
      +  "invoice.pdf.generated",
      +  "invoice.voided",
      +  "recurring_invoice.paused",
      +  "invoice.schedule_failed",
      +  "verifactu.status.updated",
      +  "account.claimed",
      +  "company.created",
      +  "representation.signed"
      +]
  4. Changed7 schema fields changedv0.5.0
    • addedInput schema / $defs / UpdateWebhookSubscriptionRequest / additionalProperties
      Added value: +false
    • removedInput schema / $defs / UpdateWebhookSubscriptionRequest / properties / account_relationship / allOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/WebhookAccountRelationship"
      -  }
      -]
    • addedInput schema / $defs / UpdateWebhookSubscriptionRequest / properties / account_relationship / anyOf
      Added value: +[
      +  {
      +    "allOf": [
      +      {
      +        "$ref": "#/$defs/WebhookAccountRelationship"
      +      }
      +    ],
      +    "description": "New set of accounts this subscription receives events from. Same field name and values as the `account_relationship` carried by every event envelope.\n"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / $defs / UpdateWebhookSubscriptionRequest / properties / account_relationship / description
      Removed value: -"New set of accounts this subscription receives events from. Same field name and values as the `account_relationship` carried by every event envelope.\n"
    • removedInput schema / $defs / UpdateWebhookSubscriptionRequest / properties / url / example
      Removed value: -"https://yourapp.com/webhooks/beel"
    • changedInput schema / $defs / WebhookEventTypeEnum / description
      Previous value: -"Available webhook event types:\n- `invoice.issued` — Invoice issued and finalized\n- `invoice.email.sent` — Invoice sent by email\n- `invoice.voided` — Invoice voided\n- `recurring_invoice.paused` — A schedule stopped generating on its own (downgrade or a\n  permanent generation failure); the invoice it was going to issue will not arrive\n- `verifactu.status.updated` — VeriFactu status changed (see `VeriFactuSubmissionStatus`)\n- `account.claimed` — A provisioned account was claimed by its holder\n- `company.created` — A NIF (company) was created inside a provisioned account\n- `representation.signed` — Fiscal representation signed for a NIF (production invoicing enabled)\n\nThe `account.*` events are delivered only to the **provisioner** that created the\naccount; a subscription on any other account never receives them.\n"New value: +"Available webhook event types:\n- `invoice.issued` — Invoice issued and finalized\n- `invoice.email.sent` — Invoice sent by email\n- `invoice.voided` — Invoice voided\n- `recurring_invoice.paused` — A schedule stopped generating on its own (downgrade or a\n  permanent generation failure); the invoice it was going to issue will not arrive\n- `verifactu.status.updated` — VeriFactu status changed (see `VeriFactuSubmissionStatus`)\n- `account.claimed` — A provisioned account was claimed by its holder\n- `company.created` — A company was created inside a provisioned account\n- `representation.signed` — Fiscal representation signed for a NIF (production invoicing enabled)\n\nThe `account.*` events are delivered only to the **provisioner** that created the\naccount; a subscription on any other account never receives them.\n"
    • addedInput schema / additionalProperties
      Added value: +false
  5. First observedv0.3.1

TDQS

A4.4/5.0
Behavior5/5

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

Goes far beyond the annotations (`destructiveHint: true`, `idempotentHint: false`): it warns that `events` replaces the whole list so omitted events stop being delivered, that the 10-active-subscription cap returns `400 WEBHOOK_ACTIVE_SUBSCRIPTION_LIMIT_REACHED`, and that reactivation requires a successful test delivery. These are exactly the side effects an agent needs before mutating a live subscription.

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?

Front-loaded summary followed by tight, field-scoped bullets — dense but every bullet carries operational information. The secret-rotation bullet is slightly tangential yet still routes the agent to the correct sibling tool.

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?

For a destructive three-parameter mutation with no output schema, the description covers the risky semantics, error conditions, and permission requirements well. The remaining gap is that it never says what a successful call returns (the updated subscription object), which matters since no output schema exists.

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?

Schema coverage is 67% and the schema already documents each body field, but the description adds real meaning: `events` is a replacement rather than a merge, `active: false` preserves history, and `account_relationship` scope changes are gated by read scopes. It does not clarify the null-vs-omitted distinction for optional fields, which the schema's nullable types leave ambiguous.

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?

The opening sentence states the operation precisely: a partial update of the fields present in the body (`url`, `events`, `active`, `account_relationship`) with the rest left untouched. The resource itself (a webhook subscription) is only named indirectly through the endpoint line and later references, but the PATCH-vs-full-replace semantics are unmistakable.

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?

Explicit about what each field does when supplied, when `active: false` is appropriate (stops deliveries but keeps history), when reactivation is blocked (self-deactivated subscriptions need a successful test delivery first), and which scopes are required for which event families. It also names the alternative for secret rotation and states the secret is not touched here.

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