Skip to main content
Glama

beel_set_invoice_status

Idempotent

Sets the commercial status of an invoice. Any transition other than the ones below is rejected.

  • PAID: from ISSUED, SENT or OVERDUE.

  • SENT: from ISSUED.

  • ISSUED: from SENT only, to undo a SENT set by mistake.

  • Not set here: issuing and voiding are fiscal acts with their own operations (POST …/{invoice_id}/issue, POST …/{invoice_id}/void), and issuing is never undone.

Endpoint: PUT /v1/companies/{company_id}/invoices/{invoice_id}/status

⚠️ 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
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.
invoice_idYesInvoice ID

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, destructive=false, idempotent=true), the description discloses that invalid transitions are rejected, that ISSUED from SENT is a mistake-undo that never un-issues an invoice, that SENT records sent_at, and that fiscal guardrails apply. This adds significant behavioral context without contradicting the annotations.

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 well-organized with a clear lead sentence, bulleted transition rules, a 'Not set here' callout, the endpoint, and a warning. Every sentence earns its place and the most important constraints are front-loaded.

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?

For a state-machine-sensitive status change, the description provides the endpoint, valid transitions, exclusions, guardrails reference, and a pointer to detailed docs. It is sufficiently complete for an agent to call the tool correctly, even without an output schema.

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 each parameter well (status enum, sent_at, payment_date, payment_method, company_id semantics), so the description doesn't need to repeat them. It adds value by mapping status meanings to allowed transitions and clarifying that issuing/voiding are out of scope. Slight deduction because it doesn't explicitly describe the body fields' conditional behavior, but the schema covers that.

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 opens with a specific verb and resource: 'Sets the commercial status of an invoice,' and immediately distinguishes itself from fiscal operations by stating 'issuing and voiding are fiscal acts with their own operations' and naming the dedicated endpoints. This clearly separates it from sibling tools like beel_issue_invoice and beel_void_invoice.

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

Usage Guidelines5/5

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

It explicitly enumerates the only valid transitions (PAID, SENT, ISSUED), states that anything else is rejected, and tells the agent what is NOT handled here (issue/void). It also directs the agent to the guardrails resource and beel_docs_search for exhaustive rules, giving clear when-to-use and when-not-to-use guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A3.7/5.0
Disambiguation4/5

Each tool targets a distinct resource-action pair, and the detailed descriptions separate lookalikes like create_invoice, create_invoice_derivation, and create_invoice_delivery. The sheer number of tools makes selection harder, and a few same-verb clusters still demand close reading, but there are no true functional duplicates.

Naming Consistency4/5

Names follow a consistent beel_verb_noun pattern with clear CRUD verbs (create/get/list/patch/delete) plus domain verbs like issue, void, send, and retry. Minor inconsistencies remain: PATCH operations are sometimes patch_*, sometimes update_* or set_*, and there is an outlier put_member_grant.

Tool Count1/5

121 tools is far beyond the 50+ threshold and is an extreme mismatch for a tool surface, however broad the underlying API. Even with clean naming, this many tools forces agents to repeatedly scan a massive list and should be consolidated or split into focused servers.

Completeness4/5

The surface covers most lifecycles exhaustively: companies, customers, invoices, products, series, recurring invoices, webhooks, members, payment events, and tax configuration. A few sub-flows have dead ends — representation generation/download/cancel exist but no submit tool, and logo deletion exists without an upload tool — so it falls just short of full coverage.