Back to integrations

AgentMail integration for background agents

Enable hosted MCP access for inboxes, threads, messages, and drafts.

Integration details

Connection

  • Hosted MCP via AgentMail OAuth

Agent actions

AgentMail MCP

  • list_inboxes

    List inboxes in the organization.

  • get_inbox

    Get a single inbox by ID.

  • create_inbox

    Create a new inbox.

  • delete_inbox

    Delete an inbox.

  • list_threads

    List threads in an inbox.

  • get_thread

    Get a thread and its messages.

  • send_message

    Send a new message from an inbox.

  • reply_to_message

    Reply to an existing message.

  • forward_message

    Forward a message to another recipient.

  • update_message

    Update a message, for example to change its labels.

  • create_draft

    Create a draft. Set send_at as an ISO 8601 timestamp to schedule it.

  • list_drafts

    List drafts in an inbox, optionally filtering by label such as scheduled.

  • get_draft

    Get a draft, including content and scheduled send time.

  • update_draft

    Update a draft. Use send_at to reschedule a scheduled draft.

  • send_draft

    Send a draft immediately.

  • delete_draft

    Delete a draft and cancel any scheduled send.

  • get_attachment

    Get an attachment by ID.

Credential safety

Credential-less sandboxes

Mistle lets agents access connected services without placing provider credentials inside the sandbox. Approved outbound requests are routed through Mistle's credential proxy, where authentication happens outside the agent runtime.

Credentials stay encrypted in Mistle's control plane and are applied only when a request is authorized for the calling sandbox and organization.

Read the credential-less sandboxes article
Diagram showing sandbox traffic routed through an egress proxy before credential injection.