MCP Tool
messages_write
Schedule or cancel a message. `schedule` fires an HTTP request at a URL at a future time — provide either `scheduled_at` (absolute Unix seconds) or `delay_seconds` (relative to now). `cancel` deletes a scheduled message (requires `id`); if it hasn't fired yet, it never will.
Input schema
api_keystringOptional API key for authentication.action"schedule" | "cancel"requiredThe operation to perform.idstringMessage ID (required for cancel).urlstringTarget URL (http/https) to send the request to (required for schedule).method"GET" | "POST" | "PUT" | "PATCH" | "DELETE"HTTP method (default POST).headersobjectOptional request headers.bodystringOptional request body (sent for non-GET methods).scheduled_atintegerAbsolute fire time, Unix seconds.delay_secondsintegerFire this many seconds from now.Example call
tools/call params
{
"name": "messages_write",
"arguments": {
"api_key": "agt_…",
"action": "schedule"
}
}