Skip to main content
Glama

Wait for email

wait_for_email

Wait until a new email arrives in the mailbox (long-poll), then return it like read_email, including extracted codes and links. Returns {"timed_out": true} if nothing matching arrives in time; just call it again. By default only emails received after this call started count (or since the mailbox was created, if that was under 2 minutes ago); pass "after" (an email id or ISO time) to include earlier ones or skip ones you handled.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNoOnly emails received after this email id (eml_…) or ISO 8601 time. Default: when this call started, or when the mailbox was created if that was under 2 minutes ago.
mailboxYesMailbox id (mbx_…) or full email address.
from_containsNoCase-insensitive substring the sender name or address must contain.
timeout_secondsNoHow long to wait (default 30, max 120).
subject_containsNoCase-insensitive substring the subject must contain.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources