Skip to main content
Glama
beel-es

BeeL MCP server

Official
by beel-es

beel_set_recurring_invoice_status

Idempotent

Pause or resume automatic generation of recurring invoices by setting their status to PAUSED or ACTIVE, keeping the schedule intact.

Instructions

Sets the lifecycle status of a recurring invoice template, which is how generation is paused and resumed:

  • PAUSED stops automatic generation, keeping the schedule configuration intact.

  • ACTIVE resumes generation and recalculates the next generation date from today.

COMPLETED is reached on its own when the schedule runs out and cannot be set through this operation. Transitions that the schedule does not allow — resuming a template that is already active, or one paused because the company still cannot issue — are rejected.

Endpoint: PUT /v1/companies/{company_id}/recurring-invoices/{recurring_invoice_id}/status

⚠️ Fiscal guardrails — read before calling:

  • How BeeL derives the AEAT invoice type, and the rules each type imposes. (resource: beel://guardrails/invoice-types)

  • What regime_key means, where it lives, and which combinations are rejected. (resource: beel://guardrails/regime-keys)

For the exhaustive rules and worked examples, call beel_docs_search.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYes
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.
recurring_invoice_idYes
Behavior4/5

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

Annotations already state not read-only and idempotent. The description adds that COMPLETED cannot be set and explains rejected transitions. It also warns about fiscal guardrails, which is important. No contradiction. It adds value beyond 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 structured with bullets and warnings. It is somewhat long but front-loaded with the main purpose. The fiscal guardrail warning is useful but could be trimmed. Overall, it's well-organized.

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 covers statuses, rejected transitions, fiscal guardrails, and points to docs for exhaustive rules. No output schema is present, but the description doesn't need to explain return values. It provides enough context 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 coverage is low (33%), but the description adds semantic meaning for 'status' (explains ACTIVE and PAUSED) and for 'company_id' (explains NIF usage and 403 behavior). The 'recurring_invoice_id' is left to the schema but it's a UUID. The description compensates for the low 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 uses a specific verb 'Sets' and resource 'recurring invoice template', and clearly explains the two statuses PAUSED and ACTIVE. It distinguishes COMPLETED as not settable. This clearly communicates the tool's purpose and differentiates from related invoice status 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 explains that this is for pausing and resuming generation, but it does not explicitly mention alternative tools or when not to use it. However, the context is clear from the tool name and the explanation. It mentions rejected transitions, which gives usage context.

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