Skip to main content
Glama
beel-es

BeeL MCP server

Official
by beel-es

beel_get_representation

Read-onlyIdempotent

Check the AEAT fiscal representation status of a company to determine if its document has been generated, submitted, accepted, or cancelled.

Instructions

Returns the state of the AEAT fiscal representation of a company: whether the document has been generated, signed and submitted, and whether AEAT accepted it or it was cancelled.

  • status: NOT_STARTED, PDF_GENERATED, SUBMITTED, ACTIVE, ERROR or CANCELLED.

  • Never started: not an error. The endpoint answers 200 with NOT_STARTED, so polling it is always safe.

Endpoint: GET /v1/companies/{company_id}/representation

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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 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."
  2. First observedv0.3.1

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already mark this read-only and idempotent, and the description adds meaningful behavior beyond that: it lists every possible status value and explicitly discloses that the endpoint returns HTTP 200 with NOT_STARTED, so polling is safe. This goes beyond what the structured hints provide.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

The description is compact and front-loaded: purpose first, then status values, then a critical safety note. The endpoint line is useful context, not filler. Every sentence contributes to correct invocation or interpretation of results.

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?

For a simple one-parameter read operation with annotation-level safety guarantees, the description is complete. It covers the return states, the safe-polling behavior, and the endpoint path. No output schema exists, but the status enum in the description fills the essential return-value gap.

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 the single company_id parameter is already richly documented in the schema (UUID, not NIF, ownership derivation, 403 behavior). The tool description adds no parameter-level detail, so the baseline of 3 applies.

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 opens with a specific verb and resource: "Returns the state of the AEAT fiscal representation of a company." It then enumerates the exact statuses the caller can expect, making the tool's role unmistakable and distinct from siblings like beel_generate_representation or beel_cancel_representation.

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 gives clear usage context by stating that polling is always safe and that NOT_STARTED is not an error, which tells the agent when repeated calls are appropriate. It does not explicitly name alternative tools or exclusion conditions, but the read-only checking purpose is strongly implied.

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