Skip to main content
Glama
BeeL MCP server

BeeL MCP server

Official
by beel-es

beel_delete_invoice_design

DestructiveIdempotent

Deletes an invoice design from a company, removing it from the list and freeing a design slot while leaving already-issued invoices unchanged.

Instructions

Deletes the design, archived or not. It no longer appears in the list, reading it answers 404, and it stops counting towards the 50 designs of the company. Invoices already issued do not change: they keep the design version they were issued with.

The design is shared by Test and Live, so deleting it with a Test credential also deletes it for Live. For that reason the default design cannot be deleted, and neither can a design used by any series of the company, in Test or in Live, whichever environment the credential belongs to. Repeating the request with the same Idempotency-Key answers 204 again.

BeeL API endpoint: DELETE /v1/companies/{company_id}/invoice-designs/{invoice_design_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": {
      "company_id": "<company_id>",
      "invoice_design_id": "<invoice_design_id>"
    },
    "name": "beel_delete_invoice_design"
  }
}

Input Schema

NameRequiredDescriptionDefault
company_idYesUnique identifier (UUID) of the company the operation acts on: its identifier, not its NIF. It is the only source of context: the account that owns it is derived from it, and the `BeeL-Active-Company` header plays no part. A company you do not reach answers `403`, and so does a company that does not exist, so the existence of a company in another account is never disclosed.
invoice_design_idYesIdentifier of the invoice design.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.12.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered. The description adds genuinely non-obvious behaviour: invoices already issued keep their design version, Test and Live share the design so a Test-credential delete affects Live, and replaying with the same Idempotency-Key returns 204 again.

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-loads the effect of deletion, then the cross-environment caveat, then the blocking conditions and idempotency. Dense but every sentence carries distinct information; the trailing endpoint/reference line is boilerplate but cheap.

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?

Covers outcomes (404 on subsequent read, 204 on idempotent replay), the blocking rules, and cross-environment impact, which is everything an agent needs for a two-parameter destructive delete with no output schema. Minor gap: it never states that a successful delete returns 204 as opposed to some other status, only implying it via the replay sentence.

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

Parameters3/5

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

Schema coverage is 100%, so the baseline is 3; both UUIDs are documented, including the 403-not-404 disclosure rule for company_id. The description adds one piece of meaning beyond the schema by introducing the Idempotency-Key request header, which is not present in the input schema at all.

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 ('Deletes the design, archived or not') and immediately scopes what that means: gone from the list, 404 on read, no longer counted against the 50-design limit. An agent can distinguish this from beel_get_invoice_design or beel_patch_invoice_design without opening any schema.

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 explicit preconditions for when deletion will fail: the default design and any design referenced by a series cannot be deleted, in either Test or Live. It does not name an alternative tool (e.g. patch to rename, or set_default to reassign), so it stops short of full when-to-use routing.

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