Skip to main content
Glama
BeeL MCP server

BeeL MCP server

Official
by beel-es

beel_create_email_domain

Idempotent

Registers a custom email sending domain and returns the DNS records to publish so you can verify it and send email from your own domain.

Instructions

Registers a domain to send your account's emails from and returns the DNS records you have to publish for it. The domain starts PENDING; publish the records and ask for the check with POST /v1/accounts/{account_id}/email-domains/{email_domain_id}/verify. A domain that is not VERIFIED 72 hours after it was registered is removed and its name is freed.

  • Add-on: requires the custom email domain add-on, which is contracted with BeeL. Without it the call answers 403 FEATURE_NOT_AVAILABLE.

  • Default: the first domain of an account, or the new one when the account has no default domain, becomes the default; otherwise the default does not change.

  • EMAIL_DOMAIN_INVALID (422): the text is not a full domain name. Internationalised names are accepted and stored in their ASCII form.

  • EMAIL_DOMAIN_RESERVED (422): the domain cannot be used as a sending domain, for example because it belongs to BeeL or to a public mailbox provider.

  • EMAIL_DOMAIN_UNAVAILABLE (409): the domain is already in use: registered by your account, by another account, or already held in the sending service BeeL uses. The answer is the same in every case and says nothing about who holds it.

  • While it registers: a domain that is still registering shows status: PENDING with dns_records: []. Read it again in a few seconds; if it stays that way, remove it with DELETE and register it again.

  • EMAIL_DOMAIN_LIMIT_REACHED (409): the account already holds as many domains as the add-on allows; error.details.limit carries that number.

  • Unpaid billing: when the billing of the account is unpaid the call answers 402 PAYMENT_REQUIRED.

  • Credentials: it changes the real account, so it requires a live API key or a dashboard session. A test API key answers 403 LIVE_CREDENTIAL_REQUIRED. Send an Idempotency-Key so a retry does not repeat the operation.

BeeL API endpoint: POST /v1/accounts/{account_id}/email-domains (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": {
      "account_id": "<account_id>",
      "body": "<body>"
    },
    "name": "beel_create_email_domain"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
account_idYesYour own account, or an account you provisioned. The account in the path, not the credential, decides which account the operation acts on. A `403` is returned when you do not reach it, the same response an account that does not exist gets.
idempotency_keyNoOptional idempotency key for this operation. Omit it and one is derived from the request itself, which makes a blind retry safe but also collapses a SECOND, deliberately identical operation into the first for 24 hours. Set it — to an order id, or anything unique per intended operation — whenever you mean to create something that may look identical to what you just created.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.12.0

TDQS

A4.6/5.0
Behavior5/5

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

Well beyond the annotations, it discloses the add-on prerequisite and its 403, the 72-hour auto-removal window, default-domain side effects, the 402 unpaid-billing case, the live-credential requirement (403 for test keys), and the semantics of 422/409 error codes including that the conflict response reveals nothing about the holder. It also explains the idempotency-key behavior, consistent with idempotentHint=true.

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 core action and workflow are front-loaded in the first two sentences, with the remaining detail organized as scannable error/behavior bullets that each serve a decision an agent must make. There is minor redundancy, such as restating the POST endpoint already referenced in the verify instruction.

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 still conveys the return value (DNS records, status PENDING, empty dns_records while registering) and covers auth, billing, quota limits, and error recovery. Nothing material is missing for an agent to invoke this mutation correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67%, and the description compensates by explaining what makes a `domain` value invalid, reserved, or unavailable, and that internationalised names are stored in ASCII form — meaning the schema does not fully carry. It adds little about `account_id` beyond the schema's already-detailed description, and its idempotency-key note is largely a subset of the richer schema text.

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?

Opens with a specific verb and resource: registers a sending domain for the account and returns the DNS records to publish. It is clearly distinguishable from siblings such as beel_verify_email_domain, beel_delete_email_domain, and beel_list_email_domains, which are named or implied by the subsequent workflow notes.

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 a full workflow: register, publish DNS records, then request the check, and tells the agent to remove and re-register a domain stuck in PENDING with `dns_records: []`. The only shortfall is that it routes to `POST /v1/.../verify` and `DELETE` as HTTP paths rather than naming the sibling tools, so an agent must map endpoints to tool names itself.

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