Skip to main content
Glama
BeeL MCP server

BeeL MCP server

Official
by beel-es

beel_list_series

Read-onlyIdempotent

Retrieve a company's invoice series, filtered by document type, active status, search text or invoice design, with optional pagination for large lists.

Instructions

Returns the invoice series of a company.

  • Filters: active restricts to active or inactive series — omit it and you get all of them. document_type returns the series of that type, the only ones that can number it. search, invoice_design_id and has_invoice_design find series by code, name or invoice design. Filters combine with AND.

  • Pagination (opt-in): send page and/or limit to receive a single page plus a data.pagination block with the totals. Omit both and the response carries the full list in data.series and no pagination block.

BeeL API endpoint: GET /v1/companies/{company_id}/series (reference: https://docs.beel.es)

⚠️ Read before calling:

  • Fiscal rules, domains numbering: beel_rules_list with domain, or resource beel://guardrails/.

  • How a series formats numbers, and which series configurations are rejected. (resource: beel://guardrails/series-and-numbering)

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>"
    },
    "name": "beel_list_series"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (starts at 1). Omit for the full, unpaginated list.
limitNoItems per page. Omit for the full, unpaginated list.
activeNoFilters by activity: `true` returns only active series, `false` only inactive ones. Omit it and you get **all** the series, active and inactive.
searchNoFilter on `code` or `name`, partial and case-insensitive. Blank or omitted returns all.
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.
document_typeNoFilter by document type
invoice_design_idNoKeep only the series assigned to this invoice design. Series without a design, which use the default one, never match: ask for them with `has_invoice_design=false`.
has_invoice_designNo`true` keeps the series assigned to an invoice design; `false` those without one, which use the default design of the company. Omit it for both.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.12.0
    • addedInput schema / properties / has_invoice_design
      Added value: +{
      +  "description": "`true` keeps the series assigned to an invoice design; `false` those without one,\nwhich use the default design of the company. Omit it for both.\n",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / invoice_design_id
      Added value: +{
      +  "description": "Keep only the series assigned to this invoice design. Series without a design, which\nuse the default one, never match: ask for them with `has_invoice_design=false`.\n",
      +  "format": "uuid",
      +  "type": "string"
      +}
    • addedInput schema / properties / search
      Added value: +{
      +  "description": "Filter on `code` or `name`, partial and case-insensitive. Blank or omitted returns all.\n",
      +  "maxLength": 100,
      +  "type": "string"
      +}
  2. Changed3 schema fields changedv0.10.0
    • changedInput schema / $defs / DocumentType / description
      Previous value: -"Document type associated with a series. Values mirror `InvoiceType`,\nso the series a document needs is named exactly like the document:\n- UNASSIGNED: Legacy value of series created before types existed. A series numbers only\n  documents of its own type, so an `UNASSIGNED` series numbers none\n  (`422 SERIES_INCOMPATIBLE_DOC_TYPE`); give it a type to keep using it. No series can be\n  created with it or moved to it (`422 SERIES_UNASSIGNED_TYPE_NOT_ALLOWED`). The live\n  ones were given the type they numbered most.\n- STANDARD: Standard invoice\n- SIMPLIFIED: Simplified invoice\n- CORRECTIVE: Corrects or cancels a previous invoice\n- PROFORMA: Proforma (commercial document, non-fiscal numbering)\n"New value: +"Document type associated with a series. Values mirror `InvoiceType`,\nso the series a document needs is named exactly like the document:\n- UNASSIGNED: Legacy value of series created before types existed. A series numbers only\n  documents of its own type, so an `UNASSIGNED` series numbers none\n  (`422 SERIES_INCOMPATIBLE_DOC_TYPE`); give it a type to keep using it. No series can be\n  created with it or moved to it (`422 SERIES_UNASSIGNED_TYPE_NOT_ALLOWED`). The live\n  ones were given the type they numbered most.\n- STANDARD: Standard invoice\n- SIMPLIFIED: Simplified invoice\n- CORRECTIVE: Corrects or cancels a previous standard invoice (R1–R4)\n- SIMPLIFIED_CORRECTIVE: Corrects a simplified invoice (R5). Spanish law requires R5 to be\n  numbered apart from R1–R4, so they have a series type of their own\n- PROFORMA: Proforma (commercial document, non-fiscal numbering)\n"
    • changedInput schema / $defs / DocumentType / enum
      Previous value: -[
      -  "UNASSIGNED",
      -  "STANDARD",
      -  "SIMPLIFIED",
      -  "CORRECTIVE",
      -  "PROFORMA"
      -]New value: +[
      +  "UNASSIGNED",
      +  "STANDARD",
      +  "SIMPLIFIED",
      +  "CORRECTIVE",
      +  "SIMPLIFIED_CORRECTIVE",
      +  "PROFORMA"
      +]
    • addedInput schema / properties / document_type / type
      Added value: +"string"
  3. Changed2 schema fields changedv0.9.0
    • changedInput schema / $defs / DocumentType / description
      Previous value: -"Document type associated with a series. Values mirror `InvoiceType`,\nso the series a document needs is named exactly like the document:\n- UNASSIGNED: Legacy series, compatible with any invoice type\n- STANDARD: Standard invoice\n- SIMPLIFIED: Simplified invoice\n- CORRECTIVE: Corrects or cancels a previous invoice\n- PROFORMA: Proforma (commercial document, non-fiscal numbering)\n"New value: +"Document type associated with a series. Values mirror `InvoiceType`,\nso the series a document needs is named exactly like the document:\n- UNASSIGNED: Legacy value of series created before types existed. A series numbers only\n  documents of its own type, so an `UNASSIGNED` series numbers none\n  (`422 SERIES_INCOMPATIBLE_DOC_TYPE`); give it a type to keep using it. No series can be\n  created with it or moved to it (`422 SERIES_UNASSIGNED_TYPE_NOT_ALLOWED`). The live\n  ones were given the type they numbered most.\n- STANDARD: Standard invoice\n- SIMPLIFIED: Simplified invoice\n- CORRECTIVE: Corrects or cancels a previous invoice\n- PROFORMA: Proforma (commercial document, non-fiscal numbering)\n"
    • changedInput schema / properties / document_type / description
      Previous value: -"Filter by document type (UNASSIGNED series are always included)"New value: +"Filter by document type"
  4. Changed2 schema fields changedv0.5.0
    • 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."
  5. First observedv0.3.1

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower. The description adds genuine value by describing the two response shapes — `data.series` when unpaginated versus `data.pagination` totals when paginated — which annotations cannot express. It does not mention ordering, rate limits, or failure modes for the list itself.

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?

Bullet-structured and front-loaded, with the core behavior first and the prerequisites in a clearly marked warning block. The prose is slightly dense, and parts of the pagination explanation restate the schema, but nothing is wasted or misleading.

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?

With eight parameters and no output schema, the description compensates by spelling out both response shapes, filter composition, and where fiscal/numbering rules live. An agent has everything needed to call it and interpret the result without opening the docs.

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 100%, so a 3 is the floor; the description goes beyond it by explaining that filters are ANDed and by clarifying the opt-in pagination contract for `page`/`limit`. It also notes that `document_type` selects the only series that can number that document type, adding meaning the enum description only partially carries.

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 specific verb and resource ("Returns the invoice series of a company") and pins it to the concrete endpoint GET /v1/companies/{company_id}/series, so the agent knows exactly what is being listed. It does not explicitly contrast itself with beel_get_series for a single series, but the plural/list framing is unambiguous.

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 clear conditions for filter behavior (omit `active` to get all, filters combine with AND) and for pagination (send `page`/`limit` for one page, omit both for the full list). It also routes the agent to prerequisite knowledge via beel_rules_list and the beel://guardrails resources. It stops short of naming a sibling when a single series is wanted.

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