Skip to main content
Glama
beel-es

BeeL MCP server

Official
by beel-es

beel_get_invoice_schedule

Read-onlyIdempotent

Retrieve an invoice's scheduled generation date and mode before updating it, so you can preserve the mode when rescheduling only the date.

Instructions

Returns the date and generation mode currently scheduled for this invoice. An invoice with no scheduling answers 404, since the sub-resource does not exist yet. To move only the date, read the current generation_mode here and send it back on the PUT.

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

⚠️ Read before calling:

  • Fiscal rules, domains lifecycle, void, corrective: 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

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered. The description adds real behavior the annotations cannot: the 404 semantics (sub-resource not yet existing) and the field-preservation caveat for the PUT. Missing return-shape detail, but strong for a read endpoint.

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?

Core purpose and routing hint are front-loaded in the first three lines; the guardrail block at the end is lengthy but scoped to relevant fiscal/lifecycle pointers and an endpoint line. Slightly verbose, but every section is purposeful.

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 two-param read tool with no output schema, the description covers what is returned (date + generation mode), the empty-schedule edge case, and pointers to prerequisite reference material. Nothing essential to correct invocation is missing.

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% and company_id carries a rich inline description (identity vs NIF, 403 behavior), so the schema does the heavy lifting. The description adds nothing about parameter format or meaning beyond that, which is the baseline-3 case.

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?

States a specific verb and resource ('Returns the date and generation mode currently scheduled for this invoice'), which is unambiguous and clearly separable from beel_set_invoice_schedule and beel_delete_invoice_schedule. An agent knows exactly what data comes back without opening a schema.

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?

Gives concrete context: the 404 case when no schedule exists, and the explicit workflow 'to move only the date, read the current generation_mode here and send it back on the PUT' — which implicitly routes to the setter. No explicit when-not-to-use or named alternative tool, so not a 5.

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