get_silence
Retrieve a specific alert silence by its ID to view or manage notification suppression in Alertmanager.
Instructions
Get a silence by its ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| silence_id | Yes |
Implementation Reference
- The main handler function for the 'get_silence' MCP tool. It takes a silence_id parameter and makes a GET request to the Alertmanager API endpoint /api/v2/silences/{silence_id} using the make_request helper.@mcp.tool(description="Get a silence by its ID") async def get_silence(silence_id: str): """Get a silence by its ID Parameters ---------- silence_id : str The ID of the silence to be retrieved. Returns ------- dict: The Silence object from Alertmanager instance. """ return make_request(method="GET", route=url_join("/api/v2/silences/", silence_id))