Skip to main content
Glama

Mailrun Agent Identity

Create identity

create_identity
Idempotent

Create an identity. Bare identities need only a name (free, active immediately). Provide email_local_part, email_domain and domain_mode together to provision a mailbox on a domain you have added (201 with status provisioning; follow meta.poll). dedicated_subdomain is not available yet. Voicemail and its email notice start on.

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": {
      "idempotency_key": "<idempotency_key>",
      "name": "<name>"
    },
    "name": "create_identity"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
voiceNoVoice for calls. Relay conversations (hosted agent, or a voice.turn receiver) use it, or Google.en-US-Chirp3-HD-Kore when null. Calls without the relay and short notices use a Polly or Google pick, otherwise Polly.Joanna-Neural. Null keeps the default. Does not change the voicemail greeting.
voice_modeNohosted: Mailrun's AI carries phone calls from hosted_system_prompt. webhook (default): your voice.turn receiver answers each turn. Any plan with phone may choose hosted; hosted calls bill at the hosted per-minute rate (22 cents versus 13 cents with your own agent, per second) from the next call. Refused with channel_not_in_plan only when the plan has no phone.
domain_modeNoroot is supported; dedicated_subdomain answers feature_not_available.
email_agentNoHosted email agent settings (as update_email_agent). A mode other than off needs the email fields too.
hosted_tierNoquick (default): fastest replies. advanced: deeper reasoning for complex conversations.
email_domainNoA domain from list_domains.
ai_disclosureNoSay the call is answered by an AI assistant on inbound hosted calls (outbound calls always say the assistant is an AI).
daily_send_capNoPer-identity daily send brake; must not exceed the plan cap.
retain_contentNoRetain email subjects/bodies, call turns and SMS bodies for 30 days (default false). SMS bodies remain readable for 26 hours after Mailrun receives the text even when false.
hosted_greetingNoSpoken first on inbound calls. Default "Hi, this is {name}. How can I help?" Screened on save with hosted_system_prompt.
idempotency_keyYesStable key you choose (max 64 chars); reuse it on retry. A different payload under the same key is refused with idempotency_conflict.
email_local_partNoLocal part (letters, digits, . _ -; a new "+" address is refused because the mail server treats it as sub-addressing). Required together with email_domain and domain_mode.
hosted_system_promptNoInstructions for the hosted phone agent. {name} and {number} are substituted. Screened on save with hosted_greeting for scam, impersonation (banks, government, utilities), collections abuse and deception: high-risk content is refused hosted_content_rejected with the reason; borderline content is accepted and reviewed (hosted_screening in the result).
outbound_voicemail_messageNoSpoken when an outbound call reaches voicemail. Default "Hi, this is {name}. Please call us back at {number}."

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (which already declare non-read-only, idempotent, non-destructive), the description adds real behavior: cost and activation timing for bare identities, a 201 with status provisioning plus a meta.poll follow-up for mailbox provisioning, and the fact that dedicated_subdomain is refused. The final sentence ('Voicemail and its email notice start on.') is truncated and conveys nothing, slightly blunting the behavioral picture.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening and the mailbox sentence are front-loaded and waste-free, but the trailing sentence is cut off mid-thought ('Voicemail and its email notice start on.'), which is dead weight and leaves a dangling promise. Overall the text is short and readable but structurally flawed at the end.

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

Completeness3/5

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

For a 15-parameter tool with nested email_agent settings, the description covers only the creation-mode decision and provisioning response, leaving voice/hosted configuration to the schema. Given the rich schema (93% coverage) that is defensible, but the incomplete closing sentence about voicemail and the absence of any mention of the idempotency requirement keep it at minimum viable.

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 93%, so the schema already documents nearly every parameter, including the domain_mode limitation the description repeats. The description's added value is limited to stating that the three email fields must be provided together; it says nothing about voice, hosted_tier, email_agent, or the required idempotency_key beyond what the schema carries.

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 specific verb+resource ('Create an identity') and immediately splits the operation into two concrete variants: a bare identity and a mailbox-provisioning identity. It is clear what the tool does, though it never names a sibling (e.g. attach_identity_email) to distinguish creation-from-scratch from later mailbox attachment.

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?

It gives explicit conditional guidance: a bare identity needs only a name and is free/active immediately, while a mailbox requires email_local_part, email_domain and domain_mode supplied together on a domain already added. It also rules out an option ('dedicated_subdomain is not available yet'). What is missing is routing against alternatives such as update_identity or attach_identity_email for later changes.

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