agenttools
MCP Tool

webhooks_write

Manage webhook endpoints and their captured events. Actions: `create` (requires `name`) returns the endpoint including the catch URL to POST to; `update`/`delete` act on an endpoint (`id`); `delete_event` removes one captured event (`id` + `event_id`); `clear_events` removes all events for an endpoint (`id`).

Input schema

api_keystring
Optional API key for authentication.
action"create" | "update" | "delete" | "delete_event" | "clear_events"required
The operation to perform.
idstring
Endpoint ID (required for everything except create).
event_idstring
Event ID (required for delete_event).
namestring
Endpoint name (required for create).
descriptionstring | null
Endpoint description (null to clear).
max_eventsinteger | null
Max events to retain (default 100; null to reset).

Example call

tools/call params
{
  "name": "webhooks_write",
  "arguments": {
    "api_key": "agt_…",
    "action": "create"
  }
}