Skip to main content
Glama
beel-es

BeeL MCP server

Official
by beel-es

beel_create_series

Idempotent

Create invoice numbering series for a company by defining a unique code, format with {NUM}, and counter reset policy, ensuring compliant, non-rewritable fiscal numbering.

Instructions

Creates an invoice series under a company.

  • Code: must be unique within the company; a code already taken answers 409.

  • Numbering: format must contain {NUM} or {NUM:X} and only accepts uppercase tokens. counter_reset defaults to ANNUAL, so a format with no year token has to be sent with counter_reset: NEVER.

  • Default series: the first series created for a document type is marked as default even if you send default_series: false.

Endpoint: POST /v1/companies/{company_id}/series

⚠️ Fiscal guardrails — read before calling:

  • How invoice numbers are formed, and why numbering can never be rewritten. (resource: beel://guardrails/series-and-numbering)

For the exhaustive rules and worked examples, call beel_docs_search.

Input Schema

TableJSON 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.
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. Changed8 schema fields changedv0.5.0
    • addedInput schema / $defs / CreateSeriesRequest / additionalProperties
      Added value: +false
    • removedInput schema / $defs / CreateSeriesRequest / properties / description / example
      Removed value: -"Series for standard invoices"
    • removedInput schema / $defs / CreateSeriesRequest / properties / initial_number / example
      Removed value: -1
    • removedInput schema / $defs / CreateSeriesRequest / properties / name / example
      Removed value: -"Main Series"
    • removedInput schema / $defs / SeriesCode / example
      Removed value: -"FAC"
    • removedInput schema / $defs / SeriesFormat / example
      Removed value: -"{CODIGO}-{YYYY}-{NUM:4}"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / company_id / description
      Previous value: -"NIF (company) the operation acts on. 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 NIF you do not reach answers `403`, and so does a NIF that does not exist, so the existence of a NIF in another account is never disclosed."New value: +"Unique 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."
  2. First observedv0.3.1

TDQS

A4.7/5.0
Behavior5/5

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

The description reveals several behaviors beyond the annotations: duplicate codes return 409, first series for a document type is auto-promoted to default even when default_series:false, and counter_reset defaults to ANNUAL requiring NEVER for formats without a year token. It also warns that invoice numbering can never be rewritten, which is important domain behavior.

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

Conciseness5/5

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

The description is tight and well-structured: a one-line purpose, focused bullets for the critical constraints, the endpoint, and a pointer to the guardrails resource. Every sentence earns its place and no space is wasted.

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

Completeness5/5

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

Together with the rich input schema and annotations, the description covers the essential preconditions, key failure mode, default behavior, and where to find deeper rules. It even flags a must-read resource before calling. The lack of an output schema is mitigated by the clear documentation pointer.

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?

The schema already documents SeriesFormat, CounterReset, and default_series in detail. The description adds cross-field meaning the schema alone does not make explicit, such as the uniqueness contract with a 409 response and the coupling between counter_reset and the format's year token. This is valuable, though some points repeat schema content.

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?

The opening sentence states an exact action and resource: 'Creates an invoice series under a company.' It also names the endpoint, making the operation unambiguous. The resource is clearly distinct from sibling tools like beel_create_invoice or beel_patch_series.

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?

The description gives strong operational guidance: read the fiscal guardrails before calling, follow the counter_reset/format coupling rule, and use beel_docs_search for exhaustive rules. It does not explicitly name alternatives or say when not to use this tool, but the context is clear enough for correct selection.

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