Skip to main content
Glama
BeeL MCP server

BeeL MCP server

Official
by beel-es

beel_get_compliance

Read-onlyIdempotent

Retrieve a company's active and scheduled invoice tax systems, including each system's period and settings, to determine current and upcoming Spanish compliance requirements.

Instructions

Returns the tax systems this company reports its invoices through, in the environment of the request: the ones that apply today (ACTIVE) and the ones set to start on a later date (SCHEDULED), each with its period and its settings. Periods that have ended are not listed. Today is the date in Spain.

The systems use the same names as the compliance array of an invoice, which records the ones that applied to that invoice when it was issued.

BeeL API endpoint: GET /v1/companies/{company_id}/compliance (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_compliance"
  }
}

Input 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.12.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: the ACTIVE/SCHEDULED status semantics, the exclusion of ended periods, the timezone convention for expiry ('Today is the date in Spain'), and the naming link to an invoice's `compliance` array. It does not describe the response shape in detail, but that is the main remaining gap.

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?

Content is front-loaded: what is returned and the status/period scoping come first, then the naming convention, then the endpoint reference. Sentences are dense but each carries information; the parenthetical documentation URL is a minor tax on length but plausibly useful. No filler.

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?

With no output schema, the description still conveys the key return semantics: a set of systems with status, period, and `settings`, minus expired ones. Combined with the annotations and the fully documented single parameter, an agent has enough to call and interpret this correctly. The absence of any statement about ordering or size of the result is the only notable omission.

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?

There is a single parameter and the schema description coverage is 100%, including the 403/existence-disclosure note, so the schema carries the semantics. The description adds nothing about company_id itself, which is acceptable given the coverage baseline. A 3 reflects that the schema does the work here.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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: 'Returns the tax systems this company reports its invoices through', then scopes it to the request environment and to ACTIVE vs SCHEDULED systems. This is clearly a read of per-company compliance configuration, distinct from the activate/deactivate siblings. It stops short of naming any alternative tool, so differentiation is inferred from phrasing rather than stated.

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

Usage Guidelines3/5

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

Usage is implied rather than prescribed: the reader learns that ended periods are excluded and that 'today' is the Spanish date, which frames when results are valid. There is no explicit statement of when to call this versus beel_get_issuing_readiness or beel_list_invoice_compliance_submissions, and no guidance on what to do if the list is empty. Adequate but with a clear gap in routing guidance.

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