Skip to main content
Glama
BeeL MCP server

BeeL MCP server

Official
by beel-es

beel_patch_invoice_design

Destructive

Updates an invoice design’s layout, font, colors, logo, QR position, language, or template; content changes create a new version for future invoices while issued invoices keep their existing design.

Instructions

Changes the design. A content change creates a version, which invoices issued from then on use; issued invoices keep theirs. A change made with a Test credential also applies to the Live invoices of the series that use the design.

BeeL API endpoint: PATCH /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>",
      "body": "<body>"
    },
    "name": "beel_patch_invoice_design"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
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.5/5.0
Behavior4/5

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

Annotations declare destructiveHint=true and readOnlyHint=false, but the description adds genuinely non-obvious traits: content changes create a version, already-issued invoices retain the version they were issued with, and a change made with a Test credential propagates to Live invoices of series using the design. That credential cross-environment effect is a significant side effect an agent could not derive from annotations. It stops short of 5 because failure modes (e.g. 403 on unreachable companies) are only in the schema and it says nothing about what the call returns.

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?

Three short paragraphs, each carrying distinct information: versioning semantics, credential scope, and endpoint/reference. The vague opening clause 'Changes the design' is the weakest line, but nothing is redundant and the key semantics are front-loaded before the endpoint boilerplate.

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 partial-update tool with no output schema and nested objects, the description covers the hardest part – version side effects and Test/Live propagation. Remaining gaps (response shape, whether archived designs accept content changes, permission requirements beyond the schema's 403 note) are minor given the rich schema documentation.

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?

With 67% schema description coverage and a heavily documented body definition, the schema already carries most parameter meaning (language, font, template type, logo source, QR position, accent color, merge-patch semantics). The description only adds that a *content* change mints a version, which hints at the distinction between content fields and name/is_archived but does not spell it out. Baseline 3 is appropriate.

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 description frames the operation as changing the invoice design's content/name/archive state, and the endpoint line (PATCH /v1/companies/{company_id}/invoice-designs/{invoice_design_id}) pins the resource unambiguously. The opening sentence 'Changes the design' is generic on its own, but the versioning sentences clarify it is a partial update of a design object. It does not explicitly distinguish itself from siblings like beel_get_invoice_design_version or beel_preview_invoice_design, which keeps it from a 5.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance relative to the sibling tools (create/delete/get/version/preview/set-default). The reader must infer that this is the tool for modifying an existing design. The note about Test credentials affecting Live invoices is a relevant caution but reads as behavioral disclosure, not routing guidance.

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