Skip to main content
Glama
BeeL MCP server

BeeL MCP server

Official
by beel-es

beel_preview_invoice_design

Renders a PDF preview of an invoice design, saved or unsaved, and returns a temporary download URL. Apply design settings with optional invoice data without storing anything.

Instructions

Renders a PDF with a design, saved or not, and returns a temporary URL, as the PDF download of an invoice does. Nothing else is stored. With invoice_id, the credential also needs invoices:read.

BeeL API endpoint: POST /v1/companies/{company_id}/invoice-designs/preview (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>",
      "body": "<body>"
    },
    "name": "beel_preview_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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.12.0

TDQS

A3.8/5.0
Behavior4/5

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

Adds real value beyond the annotations: it discloses that a temporary URL is returned, that nothing is persisted, and the extra scope (`invoices:read`) required when invoice_id is supplied — auth and side-effect facts the readOnlyHint=false/destructiveHint=false pair cannot convey. It stops short of describing the life/expiry of the temporary URL.

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 rendering action and return value, then the persistence caveat and the credential note; the endpoint line is compact. A few words are redundant ('as the PDF download of an invoice does'), but overall there is no padding.

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 preview tool with nested objects and no output schema, the description covers the essentials an agent needs: what comes back (temporary URL), that nothing is saved, and the conditional auth requirement on invoice_id. Only the temporary URL's lifespan and whether repeated calls are equivalent is missing.

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 50%, and the description compensates on the highest-risk gap by explaining that invoice_id switches from sample data to a real invoice and demands an extra scope. It leaves the merge-patch behavior of invoice_design and the default-design fallback to the schema, which does document them, so little is lost.

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?

States a concrete verb+resource: it 'Renders a PDF with a design, saved or not, and returns a temporary URL,' and pins the API endpoint. This clearly separates it from a save/create operation ('Nothing else is stored'), though it never names the sibling tools it should be preferred over (e.g. beel_create_invoice_design or beel_get_invoice_preview).

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

Usage Guidelines3/5

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

Usage is only implied: 'saved or not' and 'nothing else is stored' suggest it is the dry-run step before persisting a design, and the invoice_id note hints at real vs. sample data. There is no explicit when-to-use/when-not statement or pointer to the alternative tool that actually persists the design.

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