Skip to main content
Glama
BeeL MCP server

BeeL MCP server

Official
by beel-es

beel_get_email_configuration

Read-onlyIdempotent

Retrieve a company's invoice email sender address and defaults, including the effective sending address, why it was chosen, and any unset email content defaults.

Instructions

Returns the address the invoice emails of the company are sent from and the defaults that apply when an invoice is sent by email. It applies only to invoice emails.

  • sender.source, sender.email_domain_id and sender.local_part: what the company chose. A local_part that is null means facturas.

  • sender.effective: the address the next invoice email will go out from, and why (reason). With source BEEL it is the address of BeeL. Otherwise it is resolved in this order: the email domain chosen by the company and the default email domain of the account, then the address of BeeL. Only email domains that are verified, and only while the account holds the custom email domain add-on, count. The add-on is contracted with BeeL. email_domain_id is present only when the address uses one of the account's email domains.

  • defaults: the content applied to an invoice email that does not specify its own. Each property is null when it is not set.

  • Domain no longer verified: invoice emails go out from BeeL. without interruption, and reason reports it.

  • Environment: the configuration belongs to the company and is the same in test and live.

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

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.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, not open-world), yet the description adds real behavior beyond them: the resolution order for the effective sender, that only verified domains count and only while the custom-domain add-on is held, and that an unverified domain silently falls back to BeeL's address with `reason` reporting it. This is exactly the sort of non-obvious fallback behavior an agent cannot get from annotations.

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?

The leading sentence states the outcome, then bullets map one-to-one onto the returned field groups, so structure is easy to scan. Some of the `sender.effective` resolution detail is dense, but it earns its place by explaining fallback behavior rather than padding.

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 must carry the return-value burden and does: it explains sender.source/local_part/effective, the `reason` field, when email_domain_id is present, and that every `defaults` property is null when unset. Combined with the endpoint reference, an agent has enough to interpret the response without extra lookups.

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 schema coverage is 100%, with the schema already explaining that company_id is a UUID identifier (not the NIF), is the sole source of context, and yields 403 for unreachable companies. The description adds nothing about company_id, which is acceptable given the baseline for fully documented schemas.

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 concrete verb and resource: it returns the sender address used for company invoice emails plus the defaults applied when sending by email, and it scopes itself with 'It applies only to invoice emails.' It does not explicitly name a sibling (e.g. beel_update_email_configuration or beel_get_email_domain) to contrast against, so differentiation relies on the get/update naming rather than prose.

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?

Scope is stated clearly ('only invoice emails', same config in test and live), which implies when the tool is relevant, but there is no explicit when-to-use versus beel_get_email_domain, beel_list_email_deliveries, or the update variant, and no exclusions. An agent can infer context but must decide on its own.

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