Skip to main content
Glama

Mailrun Agent Identity

Update identity

update_identity
Idempotent

Change mutable settings: name, daily send cap, voice, content retention, voicemail preferences, the text-message email copy, the taken-message email, blocked caller numbers, and the hosted phone agent (voice_mode hosted with a hosted_system_prompt lets Mailrun's AI carry calls; takes effect on the next call, and from that call the identity bills at the hosted per-minute rate, 22 cents versus 13 cents with your own agent, per second; any plan with phone may switch, a plan without phone is refused with channel_not_in_plan). Voicemail and its email notice are on by default and are the fallback when no voice.turn receiver answers, so normally leave them on. Email and phone bindings are immutable here (use the attach/detach and phone tools). email_agent changes the hosted email agent settings (as update_email_agent).

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>"
    },
    "name": "update_identity"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
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 clears it back to the default. Does not change the voicemail greeting.
voice_modeNohosted: Mailrun's AI carries phone calls from hosted_system_prompt and bills at the hosted per-minute rate (22 cents versus 13 cents with your own agent, per second) from the next call. webhook: your voice.turn receiver answers each turn.
email_agentNoHosted email agent settings, the same fields as update_email_agent; only the fields sent change.
hosted_tierNoquick: fastest replies. advanced: deeper reasoning for complex conversations.
identity_idYesIdentity id from list_identities.
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_capNonull removes the per-identity cap.
retain_contentNo
blocked_callersNoCaller numbers (E.164, e.g. +15125550123) whose inbound calls are refused before anything is charged. Replaces the whole list; null or [] clears it. Max 50. Caller ID can be spoofed, so this is a cost and abuse control, not authentication.
hosted_greetingNoSpoken first on inbound calls. Screened on save with hosted_system_prompt.
sms_email_enabledNoEmail a copy of each text message received on the identity's number (off by default).
voicemail_enabledNo
hosted_system_promptNoInstructions for the hosted phone agent. {name} and {number} are substituted. Screened on save with the stored or supplied hosted_greeting: high-risk content is refused hosted_content_rejected with the reason and nothing changes; borderline content is accepted and reviewed (hosted_screening in the result).
message_email_enabledNoEmail the account owner when the hosted phone agent takes a message (on by default). The voice.message_taken webhook event is sent either way.
sms_email_destinationNoWhere the text-message copy goes: the account email, or the identity's own address (requires one).
voicemail_email_enabledNo
outbound_voicemail_messageNoSpoken when an outbound call reaches voicemail.
voicemail_email_destinationNoidentity requires an email address on the identity.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare the safety profile (openWorld=false, idempotent=true, destructive=false), so the description only needs to add what annotations cannot. It does add meaningful behavior: hosted mode bills at 22c vs 13c per minute per second from the next call, voicemail is the fallback when no voice.turn receiver answers, blocked callers are refused before charging, and several values are screened or require owner confirmation. That is substantive added context, though it sits just above the baseline the annotations set.

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?

It is one dense paragraph with no structural breaks across 19 parameters, and the opening enumeration of fields largely repeats property names already in the schema. The genuinely valuable sentences (billing, fallback, immutability) are buried mid-paragraph rather than front-loaded, though there is little outright 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?

For a 19-parameter mutation tool with a nested email_agent object and no output schema, the description covers defaults, error codes, screening side effects, billing consequences, and immutability boundaries. An agent has enough to call this correctly and to anticipate refusals such as hosted_content_rejected or channel_not_in_plan.

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

Parameters5/5

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

Schema coverage is 79%, so the description carries a modest load and it does so with cross-field semantics the schema does not spell out: hosted mode takes effect on the next call and changes billing, null voice reverts to a default and does not alter the voicemail greeting, and blocked_callers is a cost control rather than authentication. It also covers the two undocumented fields (retain_content and voicemail_enabled) by naming content retention and voicemail defaults.

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?

The description opens with a specific verb plus resource ('Change mutable settings') and enumerates the actual mutable fields (name, daily send cap, voice, retention, voicemail, SMS email copy, blocked callers, hosted agent). It explicitly draws the boundary with adjacent tools by declaring email and phone bindings immutable here and routing them to attach/detach and phone tools.

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 real exclusion guidance ('Email and phone bindings are immutable here (use the attach/detach and phone tools)') and an operational default ('normally leave voicemail on'). The one soft spot is email_agent: it says it is 'the same fields as update_email_agent' without stating plainly which tool an agent should prefer when both fit.

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