Skip to main content
Glama
BeeL MCP server

BeeL MCP server

Official
by beel-es

beel_get_invoice_reply_attachment

Read-onlyIdempotent

Retrieves an invoice reply attachment and returns a temporary download URL valid for about one hour; call again for a fresh link when it expires.

Instructions

Returns the attachment with a temporary download_url for its file. BeeL. does not store the file: the link is requested when you call this operation and stays valid for about an hour, so call it again for a fresh one rather than keeping it. download_url and download_url_expires_at are null when there is no file to download: the attachment was registered with POST .../invoice-replies, or its file is no longer available (see file_expires_at).

BeeL API endpoint: GET /v1/companies/{company_id}/invoice-replies/{reply_id}/attachments/{attachment_id} (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>",
      "reply_id": "<reply_id>",
      "attachment_id": "<attachment_id>"
    },
    "name": "beel_get_invoice_reply_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
reply_idYesUnique identifier (UUID) of the reply, as returned by the list or by `POST .../invoice-replies`.
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.
attachment_idYesUnique identifier (UUID) of the attachment, as returned in `attachments` by the reply.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.12.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), and the description goes well beyond them: it discloses that BeeL does not store the file, that the URL is minted per call and expires in roughly an hour, and exactly what null means for `download_url` and `download_url_expires_at`. That is precisely the behavior an agent cannot infer from structured fields.

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 core behavior and the expiry caveat before the null-case detail. The trailing endpoint line and docs reference are boilerplate but compact and useful for traceability.

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?

There is no output schema, so the description carries the burden of explaining return fields, and it does: `download_url`, `download_url_expires_at`, `file_expires_at`, and the null condition. For a simple three-required-UUID read tool, nothing an agent needs 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%, so all three UUID parameters are already documented, including the 403 non-disclosure behavior for `company_id`. The description adds no per-parameter meaning beyond that, so baseline 3 applies.

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 opening sentence names a specific verb and resource ('Returns the attachment with a temporary `download_url`'), which is far more than a restatement of the name. It also implies the read-only, per-attachment scope that separates it from `beel_get_invoice_reply`. It does not explicitly contrast itself with sibling tools, so it falls short of a 5.

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?

Clear operational guidance: the link is generated on demand, valid for about an hour, and should be re-requested rather than cached. It also explains the null case (registered via POST, or file gone; see `file_expires_at`). It stops short of naming which sibling to call when you want the reply metadata instead of the file.

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