delete_silence
Remove a specified silence by its ID in the alertmanager-mcp-server, enabling users to clear specific alert suppression rules efficiently.
Instructions
Delete a silence by its ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| silence_id | Yes |
Implementation Reference
- The delete_silence tool handler, registered via @mcp.tool decorator. Executes by sending a DELETE request to /api/v2/silences/{silence_id} using the make_request helper.@mcp.tool(description="Delete a silence by its ID") async def delete_silence(silence_id: str): """Delete a silence by its ID Parameters ---------- silence_id : str The ID of the silence to be deleted. Returns ------- dict: The response from the Alertmanager API. """ return make_request( method="DELETE", route=urljoin("/api/v2/silences/", silence_id) )