create_webhook
Register webhooks to receive real-time notifications for prediction market events like whale alerts, price shifts, and analysis completion from Rekko MCP server.
Instructions
Register a webhook for real-time event notifications.
Args: url: HTTPS URL to receive POST notifications. events: Event types: "whale_alert", "price_shift", "analysis_complete". secret: Optional shared secret for HMAC signature verification.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| events | Yes | ||
| secret | No |
Implementation Reference
- src/rekko_mcp/server.py:457-469 (handler)The tool 'create_webhook' is defined here as an MCP tool using the @mcp.tool() decorator. It sends a POST request to the Rekko API to register a new webhook.
@mcp.tool() async def create_webhook(url: str, events: list[str], secret: str = "") -> str: """Register a webhook for real-time event notifications. Args: url: HTTPS URL to receive POST notifications. events: Event types: "whale_alert", "price_shift", "analysis_complete". secret: Optional shared secret for HMAC signature verification. """ body: dict = {"url": url, "events": events} if secret: body["secret"] = secret return await _request("POST", "/v1/webhooks", json=body)