wait_for_mail
Long-poll for a new mail. Returns immediately if a mail with id > since already exists, otherwise blocks up to timeout seconds. Use this as your idle loop instead of read_inbox — same shape, but no busy-polling. Standard pattern: pass next_since from the previous call as since.
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": {
"address": "<address>",
"token": "<token>"
},
"name": "wait_for_mail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Return mails with id > this. Default 0 (any). | |
| token | Yes | The inbox token from create_inbox. | |
| address | Yes | The inbox address (e.g. merry-llama-abcd@apumail.com). | |
| timeout | No | Max seconds to block (1-300). Default 60. |