delete_webhook
Remove a webhook from a Codemagic CI/CD application to stop receiving automated notifications or triggers from that integration.
Instructions
Delete a webhook from a Codemagic application.
Args: app_id: The Codemagic application ID. webhook_id: The webhook ID to delete.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | ||
| webhook_id | Yes |
Implementation Reference
- codemagic_mcp/tools/webhooks.py:32-41 (handler)The tool handler for 'delete_webhook' which calls the Codemagic client.
@mcp.tool(annotations=ToolAnnotations(destructiveHint=True)) async def delete_webhook(app_id: str, webhook_id: str) -> Any: """Delete a webhook from a Codemagic application. Args: app_id: The Codemagic application ID. webhook_id: The webhook ID to delete. """ async with CodemagicClient() as client: return await client.delete_webhook(app_id, webhook_id) - codemagic_mcp/client.py:329-330 (handler)The API client method that performs the actual HTTP DELETE request to remove a webhook.
async def delete_webhook(self, app_id: str, webhook_id: str) -> Any: return await self._delete(f"/apps/{app_id}/webhooks/{webhook_id}")