Skip to main content
Glama
beel-es

BeeL MCP server

Official
by beel-es

beel_list_invoices

Read-onlyIdempotent

Retrieve a paginated list of company invoices, filterable by status, type, series, customer, date range, and totals. Find the exact invoices you need.

Instructions

Returns a paginated list of the invoices of this company (NIF), filterable by status, type, series, customer, date range and free text. Only the documents of the company in the path are returned.

Endpoint: GET /v1/companies/{company_id}/invoices

⚠️ Fiscal guardrails — read before calling:

  • When an invoice can still be changed, and what to do once it cannot. (resource: beel://guardrails/invoice-state-machine)

For the exhaustive rules and worked examples, call beel_docs_search.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number, starting at 1. The response echoes it back as `pagination.current_page`.
typeNoFilter by invoice type
limitNoHow many items to return per page. The response echoes it back as `pagination.items_per_page`.
searchNoGlobal search across invoice number, recipient name, recipient NIF, and series code (partial, case-insensitive)
statusNoFilter by invoice status. Accepts a comma-separated list to match any of several statuses, for example `status=DRAFT,ISSUED`. A single value is also valid.
date_toNoIssue date to (YYYY-MM-DD)
sort_byNoField to sort by (e.g., issue_date, invoice_number, invoice_total)
metadataNoFilter by metadata key/value pairs (exact match, AND between keys). Repeat the bracket-style param to filter on multiple keys. Max 50 pairs per request. Keys must match `^[A-Za-z0-9_\-.]{1,64}$`. Example: `?metadata[external_order_id]=ORD-42&metadata[tenant]=acme`
date_fromNoIssue date from (YYYY-MM-DD)
total_maxNoMaximum invoice total
total_minNoMinimum invoice total
company_idYesNIF (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.
sort_orderNoSort directiondesc
customer_idNoFilter by customer UUID
fiscal_onlyNoWhen `true`, returns only fiscal documents (STANDARD, CORRECTIVE, SIMPLIFIED), excluding proformas and any other non-fiscal document. Defaults to `false` (the list returns every document type). Ignored when an explicit `type` is given.
series_codeNoFilter by series code (exact match, case-insensitive). Use `search` for partial matching across the invoice number, recipient and series code.
external_refNoFilter by exact external reference (client-supplied order/cart/contract id).
recipient_nifNoFilter by recipient's NIF (partial search)
invoice_numberNoSearch by invoice number (e.g., 2025/0001)
recipient_nameNoFilter by recipient's fiscal name (partial, case-insensitive search)
taxable_base_maxNoMaximum taxable base
taxable_base_minNoMinimum taxable base
verifactu_statusNoFilter by the VeriFactu submission status of the invoice, using the very same vocabulary that `verifactu.submission_status` publishes on each invoice. `NOT_SUBMITTED` selects issued invoices with VeriFactu enabled whose registration never happened (no live record).
verifactu_enabledNoFilter by whether VeriFactu is enabled for the invoice — the same flag published as `verifactu.enabled`. `false` returns the invoices that never reach AEAT.
rectified_invoice_idNoReturn the corrective invoices that correct this invoice. Accepts the id of an issued invoice; a single invoice can have several partial correctives.
Behavior4/5

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

Annotations already include readOnlyHint=true, idempotentHint=true, destructiveHint=false. The description adds the key behavioral fact that only documents of the company in the path are returned, and scopes the account context (company_id is the only source of context; header plays no part). It also warns about fiscal guardrails (when an invoice can still be changed) and directs to docs for exhaustive rules. This adds value beyond the annotations, though it doesn't mention pagination details or rate limits explicitly, but the baseline is lowered by strong annotations. No contradiction found.

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 short, front-loaded with the core purpose, then the endpoint, then a pointed warning about fiscal guardrails and a pointer to docs. Every sentence earns its place; the guardrail note is specifically actionable. No redundancy with annotations. Structure is clear and concise.

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 complex 25-parameter list tool with no output schema, the description gives the essential context: scope, key filters, and a critical safety pointer (guardrails). It does not enumerate every filter but the schema already does that (100% coverage). The description handles the company scoping nuance and directs to docs for exhaustive rules, which is appropriate given the tool complexity. Missing pagination specifics (like default limit, max) are minor and covered by schema defaults. It is sufficiently complete for an agent to call correctly.

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 description coverage is 100%, so according to the rubric, the baseline is 3. However, the description adds value by summarizing the key filter categories (status, type, series, customer, date range, free text) which helps the agent see the breadth without reading every parameter. It also mentions 'free text' which maps to the `search` parameter and highlights the `fiscal_only` concept implicitly via 'invoices of this company'. The description does not repeat parameter details—that's left to the schema—but it provides a useful high-level summary. Since coverage is high, and the description adds a compact view of the filters, a 4 is justified.

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 description states a specific verb ('Returns'), resource ('paginated list of invoices'), scope ('this company (NIF)'), and lists filterable dimensions (status, type, series, customer, date range, free text). It also explicitly scopes results to only the company in the path, clearly distinguishing it from any global list. The endpoint is named, and the guardrail reference adds context. This clearly separates it from siblings like beel_list_invitations and other list tools.

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 clearly states when to use: to list invoices of a specific company, with extensive filtering options. It does not explicitly mention when not to use alternatives, but the scoping to a single company and the guardrail note about invoice state machine provide context. The mention of 'fiscal guardrails' and reference to beel_docs_search for exhaustive rules gives usage direction, though there are no explicit exclusion criteria against other list tools. This is better than many because it points to a docs search for edge cases.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/beel-es/beel-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server