wait_for_reply
Block-poll your inbox until a reply to a specific message arrives, returning the new reply or a timeout signal. Retry safely on timeout—late replies are preserved and returned on the next call.
Instructions
Block-poll the inbox for a reply to a given message_id that you have NOT seen yet. Returns the reply message, or {timed_out: true, retry: true} when none arrived — nothing is lost on timeout: a late reply stays in the DB and in unread, and the NEXT wait_for_reply call returns it immediately. 'Not seen yet' means: not already marked read by you (include_read=true drops that condition), and — if you pass 'after_id' — newer than that id; pass after_id= when looping without marking things read. A message_id that does not exist is refused. The per-call wait is capped at 50s (below MCP client tool timeouts), so wait longer by calling again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after_id | No | ||
| timeout_s | No | ||
| message_id | Yes | ||
| include_read | No | ||
| poll_interval_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||