Skip to main content
Glama

Mailrun Agent Identity

Attach email

attach_identity_email

Attach a mailbox to a bare identity on one of your active domains (202, then provisioning; follow meta.poll). Refused while the account is past due or the identity is suspended, released or already has email. An address another identity detached is held for that identity during its rebind window (email_address_held, 409; attach it after details.available_after as a new, empty mailbox).

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": {
      "identity_id": "<identity_id>",
      "email_local_part": "<email_local_part>",
      "email_domain": "<email_domain>",
      "domain_mode": "<domain_mode>"
    },
    "name": "attach_identity_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
domain_modeYes
identity_idYesIdentity id from list_identities.
email_domainYes
email_local_partYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses the 202-async-with-provisioning contract and the meta.poll follow-up, lists the four refusal states, and documents the 409 email_address_held rebind-window behavior. None of this is derivable from readOnlyHint/destructiveHint/idempotentHint, so the description carries real informational weight.

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?

Three sentences, each load-bearing, with the core action front-loaded before the refusal and edge-case clauses. The parenthetical stacking (202, then provisioning; follow meta.poll) is dense but does not waste words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an async mutation with multiple failure modes and no output schema, the description covers initiation, polling, refusal states, and the hold/rebind case. The remaining gap is the unexplained domain_mode enum and local-part format rules, which an agent must guess at call time.

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 coverage is only 25% (only identity_id is documented in-schema), and the description adds meaning by showing that local part plus domain compose the mailbox address on an active domain. However, domain_mode's root vs dedicated_subdomain choice and the local-part constraints are never explained, leaving half the gap unaddressed.

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 — "Attach a mailbox to a bare identity on one of your active domains" — and encodes the inverse of the sibling detach_identity_email. An agent can tell exactly what changes and where without opening the schema.

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 explicit when-not conditions (account past due, identity suspended/released/already has email) and even prescribes the recovery path for the held-address case (retry after details.available_after as a new, empty mailbox). It stops short of naming a specific alternative tool for those refusals, so it is not fully exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources