Skip to main content
Glama
ntk148v

alertmanager-mcp-server

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
NameRequiredDescriptionDefault
silence_idYes

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

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/ntk148v/alertmanager-mcp-server'

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