Skip to main content
Glama
Rekko-AI
by Rekko-AI

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
NameRequiredDescriptionDefault
urlYes
eventsYes
secretNo

Implementation Reference

  • 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)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Rekko-AI/rekko-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server