triggers.wait, and wakes with the event body the instant one is captured — acting only on events whose signature you verified.
Create an endpoint and verify its source
Register the provider secret so the agent can trust what it acts on. An event that fails verification should never drive a tool call.
Create a trigger over MCP
From your agent’s MCP client, call
triggers.create with the endpoint id. It returns a triggerId and creates no outbound egress — it only consumes events you can already read.Loop on triggers.wait
triggers.wait is a short-poll: it returns events past your cursor (with an inline body), then you pass the returned nextCursor back to continue. Delivery is at least once, acked by cursor — so make the agent’s action idempotent.verificationState: act on verified / authenticated, skip unattempted, never on failed.