Skip to main content
Glama
BeeL MCP server

BeeL MCP server

Official
by beel-es

beel_get_fiscal_summary

Read-onlyIdempotent

Returns VAT and IRPF totals for a company's issued invoices in a requested period, plus annual IRPF projection and bracket breakdown, with an optional invoice list.

Instructions

Returns the VAT and IRPF summary of the invoices issued under this company over the requested period, together with the annual IRPF projection and its progressive bracket breakdown. start_date and end_date go together: send both, or neither. Omitting both defaults to the current month; sending only one answers 400, because a period you did not ask for is worse than an error. The range may not exceed 366 days, and every fault names itself in details.reason. The totals are always computed over every invoice in the period. The list of those invoices is not returned unless you ask for it with include=invoices: it grows with the period and is not paginated, so request it only when you need the per-invoice figures.

BeeL API endpoint: GET /v1/companies/{company_id}/fiscal-summary (reference: https://docs.beel.es)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "company_id": "<company_id>"
    },
    "name": "beel_get_fiscal_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
includeNoAdds data that is left out by default. `invoices` adds the `invoices` list: one entry per invoice counted in the totals. Omit it and the response carries the totals only; an unsupported value answers `400`.
end_dateNoPeriod end date (inclusive), as `YYYY-MM-DD`. Goes together with `start_date`: supply both or neither. Omitting both defaults to the current month; supplying only one is rejected with `400` (`PERIOD_INCOMPLETE`).
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.
start_dateNoPeriod start date (inclusive), as `YYYY-MM-DD`. Goes together with `end_date`: supply both or neither. Omitting both defaults to the current month; supplying only one is rejected with `400` (`PERIOD_INCOMPLETE`).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.12.0
    • addedInput schema / $defs
      Added value: +{
      +  "FiscalSummaryInclude": {
      +    "description": "Data to add to the fiscal summary. `invoices` adds the list of invoices counted in the totals.",
      +    "enum": [
      +      "invoices"
      +    ],
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / include
      Added value: +{
      +  "$ref": "#/$defs/FiscalSummaryInclude",
      +  "description": "Adds data that is left out by default. `invoices` adds the `invoices` list: one entry per invoice counted in the totals. Omit it and the response carries the totals only; an unsupported value answers `400`.",
      +  "type": "string"
      +}
  2. Changed4 schema fields changedv0.5.0
    • 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."
    • changedInput schema / properties / end_date / description
      Previous value: -"Period end date (inclusive). Format: YYYY-MM-DD"New value: +"Period end date (inclusive), as `YYYY-MM-DD`. Goes together with `start_date`:\nsupply both or neither. Omitting both defaults to the current month; supplying\nonly one is rejected with `400` (`PERIOD_INCOMPLETE`).\n"
    • changedInput schema / properties / start_date / description
      Previous value: -"Period start date (inclusive). Format: YYYY-MM-DD"New value: +"Period start date (inclusive), as `YYYY-MM-DD`. Goes together with `end_date`:\nsupply both or neither. Omitting both defaults to the current month; supplying\nonly one is rejected with `400` (`PERIOD_INCOMPLETE`).\n"
  3. First observedv0.3.1

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare it read-only, idempotent and non-destructive, but the description adds real behavioral context: error responses carry `details.reason`, single-sided dates yield 400, and the optional invoice list is unpaginated and grows with the period. The only gap is that it does not describe how the IRPF projection behaves for partial-year periods.

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?

Front-loaded with the purpose and the response contents, then the date rules, then the optional data. Slightly padded by the aphorism about an unrequested period being worse than an error, and the endpoint/docs line is boilerplate, but no sentence is misleading.

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?

With no output schema, the description still enumerates the returned parts (period totals, annual IRPF projection, bracket breakdown, optional invoice list), the failure modes and the size behavior. That is enough for an agent to call this correctly and anticipate its response.

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 100%, so the baseline is 3; the description goes beyond it by stating the 366-day cap and the rationale for the both-or-neither date rule, neither of which appears in the schema. The `include=invoices` payload is explained in terms of what it adds and its lack of pagination.

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?

Names a specific resource and computation: the VAT and IRPF summary of invoices issued by a company over a period, plus the annual IRPF projection and bracket breakdown. It also distinguishes itself from the per-invoice siblings by stating that the invoice list is not returned by default, so an agent can tell when this tool applies.

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?

Gives explicit rules: start_date and end_date must be supplied together or omitted together, omission defaults to the current month, and the range cannot exceed 366 days. It also states when to set include=invoices — only when per-invoice figures are actually needed — which is a genuine when-to-use qualifier rather than restatement.

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