Skip to main content
Glama
BeeL MCP server

BeeL MCP server

Official
by beel-es

beel_delete_invoice_reply

DestructiveIdempotent

Erases an invoice reply’s text, subject, sender, attachments and identifiers to fulfill an erasure request and emit invoice.reply.deleted; repeated deletion returns 204 without action.

Instructions

Erases the text, subject, sender, attachments, external_id and connection_id of the reply, to answer an erasure request, and delivers invoice.reply.deleted. Repeating it answers 204 and delivers nothing. The same channel and external_id can no longer be registered: a new attempt answers 409 without reply_id. Retrying the original registration with its same Idempotency-Key within 24 hours still replays the original response.

BeeL API endpoint: DELETE /v1/companies/{company_id}/invoice-replies/{reply_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>"
    },
    "name": "beel_delete_invoice_reply"
  }
}

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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.12.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare destructive, idempotent and non-read-only, but the description adds substantial behavior beyond them: which fields are destroyed versus merely unlinked, that invoice.reply.deleted is emitted, that a second call returns 204 silently, and that the channel/external_id pair becomes unreusable with a 409. The 24-hour idempotency replay caveat is exactly the kind of nuance annotations cannot carry.

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 destructive action and its side effects, then the retry/idempotency edge cases, then the endpoint reference. Information-dense without padding, though the run-on sentence covering 204/409/replay could be split for faster scanning.

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 two-parameter destructive call with no output schema, the description covers outcome codes, emitted events, side effects on re-registration, and idempotency semantics — everything an agent needs to call it correctly and interpret the result.

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 both parameters are fully documented in the schema, so the baseline of 3 applies. The description mentions external_id and channel only as consequences of deletion, not as parameters, so it adds no invocation-level meaning beyond the schema.

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 ('Erases ... the reply') and enumerates exactly what is removed (text, subject, sender, attachments, external_id, connection_id), plus the purpose ('to answer an erasure request'). This is plainly distinguishable from sibling beel_delete_invoice, which deletes an invoice rather than a reply's contents.

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 a clear triggering condition — an erasure request — and describes the repeat-call path ('answers 204 and delivers nothing'), the re-registration block ('409 without reply_id'), and the Idempotency-Key replay window. It does not explicitly compare against beel_create_invoice_reply or beel_get_invoice_reply, so a small inference is left to the agent.

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