delete_webhook_subscription
Remove the current webhook subscription to stop receiving updates.
Instructions
Delete the active webhook subscription.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/hevy_mcp/tools/webhooks.py:30-35 (handler)The handler function for the delete_webhook_subscription tool. It sends a DELETE request to '/webhook-subscription' endpoint via the Hevy API client and returns a confirmation message.
@mcp.tool() @tool_guard async def delete_webhook_subscription() -> dict[str, Any]: """Delete the active webhook subscription.""" await client.delete("/webhook-subscription") return {"text": "Webhook subscription deleted."} - src/hevy_mcp/tools/__init__.py:6-12 (registration)Top-level registration entry point that calls webhooks.register(mcp, ctx), which in turn registers the delete_webhook_subscription tool via the @mcp.tool() decorator.
def register_all(mcp, ctx) -> None: workouts.register(mcp, ctx) routines.register(mcp, ctx) folders.register(mcp, ctx) templates.register(mcp, ctx) webhooks.register(mcp, ctx) analytics.register(mcp, ctx) - src/hevy_mcp/tools/webhooks.py:10-11 (registration)The register() function in webhooks.py that registers all webhook tools (including delete_webhook_subscription) onto the FastMCP server using the @mcp.tool() decorator.
def register(mcp, ctx) -> None: client = ctx.client