Wait for an event
create_agent_wakeCreate a durable MCP task that completes when a webhook arrives, a person answers a form or a chosen time is reached. Use it when an agent must pause and continue after an outside event without holding one HTTP request open. The task lasts from 60 seconds to 24 hours. Webhook bodies and human answers are readable by anyone holding the task URL, so do not send secrets, credentials or personal data.
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": {
"event_type": "<event_type>"
},
"name": "create_agent_wake"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | For human events. The question shown on the form. | |
| options | No | For human events. The choices on the form. | |
| wake_at | No | For time events. Unix timestamp to wake at. | |
| allow_note | No | For human events. Allow an optional note. | |
| event_type | Yes | The event that completes the task. | |
| description | No | For human events. Supporting detail shown below the title. | |
| delay_seconds | No | For time events. Wake this many seconds from now. | |
| timeout_seconds | No | Maximum task lifetime in seconds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ||
| event_type | Yes | ||
| completed_at_datetime | Yes | ||
| completed_at_timestamp | Yes |