Wait For Message
mailbox_wait_for_messageWait for new email messages without manual polling. Polls up to 25 seconds and returns matching messages or a clean no_message result.
Instructions
Use this to wait briefly for new mail instead of manual polling. It polls for up to 25 seconds, returns a matching message with attachment metadata when found, or a clean no_message result so you can call again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Optional full-text query to match. | |
| after | No | ISO 8601 lower bound for received_at. Omit to wait for messages received after this call starts. | |
| keyword | No | Optional keyword/label that the message must have, such as $seen. | |
| subject | No | Optional subject text filter. | |
| folder_id | No | Optional folder ID filter. | |
| from_email | No | Optional sender email address or display-name filter. | |
| mailbox_id | No | Mailbox public ID when the credential can access more than one mailbox. | |
| has_attachment | No | When true, wait only for messages with attachments. | |
| timeout_seconds | No | Maximum seconds to wait. Capped at 25 seconds so MCP clients do not hold a tool call open indefinitely. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||