Skip to content

webhooks_create

Category: webhooks

Create a new webhook attached to a channel.

  • Provision an automation endpoint (CI notifier, alert relay, cross-poster).
  • Sending one-off bot messages → messages_send.
FieldTypeRequiredDescription
channel_idstringyesChannel that will host the webhook
namestringyesWebhook display name (max 80 chars)
avatarunknownnobase64-encoded image data URI for the webhook avatar, or null
audit_reasonstringnoReason recorded in audit log (X-Audit-Log-Reason header)

Full webhook record INCLUDING the token — store it as a secret. The agent needs the token to call webhooks_execute. name is wrapped untrusted (creator-controlled).

FieldTypeRequiredDescription
idstringyesDiscord webhook ID
typeintegeryes
channel_idunknownyes
application_idunknownyes
nameunknownyes
avatarunknownyes
tokenstringnoDiscord webhook token (secret — treat as credential, do not log)
untrusted_namestringyes
PropertyValue
Read-onlyno
Destructiveno
Idempotentno
Open-worldyes
Confirmation requiredno

packages/mcp-core/src/tools/webhooks/create.ts