Skip to main content
Glama
beel-es

BeeL MCP server

Official
by beel-es

beel_get_invoice

Read-onlyIdempotent

Retrieve full invoice details for a given company and invoice ID, including status and fiscal data, to review or process Spanish electronic invoices.

Instructions

Retrieves the full details of an invoice of this company.

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

⚠️ Read before calling:

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

  • The status names, the proforma lifecycle, and which tool performs each operation. (resource: beel://guardrails/invoice-state-machine)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
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_idYesInvoice ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.5.0
    • removedInput schema / $defs / UUID / example
      Removed value: -"550e8400-e29b-41d4-a716-446655440000"
    • 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

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds the HTTP endpoint and the dependency on fiscal rules / the invoice state machine, but says nothing about what 'full details' actually returns, pagination, or error behavior (e.g. 404 for missing invoice).

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?

Purpose is front-loaded in one sentence, followed by the endpoint and a clearly marked warning block. The warning block is slightly malformed — 'The status names, the proforma lifecycle, and which tool performs each operation.' is a dangling fragment — but overall it is compact and skimmable.

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 read-only tool with full annotation coverage and 100% schema coverage, the description supplies the purpose, the endpoint, and the required prerequisite resources. The main gap is that with no output schema, 'full details' is never unpacked, but an agent has enough to call it correctly.

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?

Schema description coverage is 100%, so both company_id and invoice_id are already documented in the schema, including the 403/context semantics for company_id. The description adds no parameter-level meaning beyond that, so the baseline of 3 applies.

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 ('Retrieves the full details of an invoice') and pins it with the exact endpoint GET /v1/companies/{company_id}/invoices/{invoice_id}, which clearly separates it from list/aggregate siblings. It does not, however, explicitly name or contrast itself with close siblings like beel_get_invoice_pdf, beel_get_invoice_preview, or beel_list_invoices.

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?

The '⚠️ Read before calling' block gives preconditions — consult beel_rules_list and the beel://guardrails/invoice-state-machine resource — which is real usage context. But it never says when to choose this tool over the several invoice-reading siblings, and the guidance is framed as documentation pointers rather than selection criteria.

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