Skip to main content
Glama
beel-es

BeeL MCP server

Official
by beel-es

beel_delete_invoice_schedule

DestructiveIdempotent

Remove an invoice's scheduled emission and revert it to a draft. Works even if no schedule exists, returning 204.

Instructions

Removes the scheduling of an invoice, returning it to a plain draft. Idempotent: an invoice that is not scheduled answers 204 all the same. Unlike the PUT, it does not require the scheduled_invoices feature.

Endpoint: DELETE /v1/companies/{company_id}/invoices/{invoice_id}/schedule

⚠️ 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)

  • Choosing wrong here misreports to AEAT. The 30-second decision. (resource: beel://guardrails/cancel-vs-rectify)

For the exhaustive rules and worked examples, call beel_docs_search.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
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.
invoice_idYesInvoice ID
Behavior4/5

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

The description elaborates on the idempotentHint annotation by explaining that an unscheduled invoice still returns 204, and specifies the result ('returning it to a plain draft'). It also warns about fiscal consequences and references dedicated guardrail resources, adding significant behavioral context beyond the annotations. It does not contradict 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.

Conciseness4/5

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

The description is compact and well-structured, with the core behavior front-loaded, followed by idempotency and the contrast with PUT, an endpoint reference, and a clearly marked warning section. The warnings and doc pointer are valuable for a fiscally sensitive operation, though they add length. Overall, it is efficient without unnecessary fluff.

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?

The description addresses the key decision points: idempotency, feature requirements, and fiscal dangers, and points to the docs for exhaustive rules. It does not detail all possible error responses (e.g., invoice not found), but given the idempotent nature and the guardrail references, the coverage is sufficient for an agent 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 descriptions for both parameters are comprehensive, covering 100% of the parameters with detailed explanations (e.g., company_id semantics and 403 behavior). The description itself adds no extra parameter-level information, so the baseline of 3 applies given the high schema coverage.

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 action: 'Removes the scheduling of an invoice, returning it to a plain draft.' It clearly distinguishes itself from the sibling PUT operation ('Unlike the PUT, it does not require the scheduled_invoices feature') and from deletion, making the purpose 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?

It contrasts directly with the PUT (beel_set_invoice_schedule) and explains a key condition (no feature requirement). It also references fiscal guardrails and directs to beel_docs_search for exhaustive rules. However, it does not explicitly mention alternative actions (e.g., when to use delete_invoice or void_invoice) or provide a 'when not to use' statement beyond the PUT comparison.

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