Skip to main content
Glama
ntk148v

alertmanager-mcp-server

get_silence

Retrieve a specific silence by its ID from the alertmanager-mcp-server to manage and review alert suppression details efficiently.

Instructions

Get a silence by its ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
silence_idYes

Implementation Reference

  • The handler function for the 'get_silence' tool. It retrieves a specific silence by its ID from the Alertmanager API using a GET request to /api/v2/silences/{silence_id}. The function is decorated with @mcp.tool, registering it as an MCP tool.
    @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=urljoin("/api/v2/silences/", silence_id))
  • The @mcp.tool decorator registers the get_silence function as an MCP tool.
    @mcp.tool(description="Get a silence by its ID")

Other Tools

Related Tools

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