Skip to main content
Glama

get_incident

Retrieve detailed incident data, including event timeline, affected applications, impact assessment, and resolution status, using project and incident IDs for precise tracking and analysis.

Instructions

Get detailed information about a specific incident.

Retrieves comprehensive incident information including:

  • Timeline of events

  • Affected applications

  • Impact assessment

  • Resolution status

Args: project_id: Project ID incident_id: Incident ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
incident_idYes
project_idYes

Implementation Reference

  • The main MCP tool handler function 'get_incident' decorated with @mcp.tool(), which defines the tool schema via arguments and docstring, handles execution by calling the internal impl, and serves as registration point.
    @mcp.tool() async def get_incident(project_id: str, incident_id: str) -> dict[str, Any]: """Get detailed information about a specific incident. Retrieves comprehensive incident information including: - Timeline of events - Affected applications - Impact assessment - Resolution status Args: project_id: Project ID incident_id: Incident ID """ return await get_incident_impl(project_id, incident_id) # type: ignore[no-any-return]
  • Internal helper implementation in server.py that calls the CorootClient's get_incident method and formats the response.
    async def get_incident_impl(project_id: str, incident_id: str) -> dict[str, Any]: """Get incident details.""" incident = await get_client().get_incident(project_id, incident_id) return { "success": True, "incident": incident, }
  • CorootClient.get_incident method that performs the HTTP GET request to the Coroot API to fetch specific incident details.
    async def get_incident(self, project_id: str, incident_id: str) -> dict[str, Any]: """Get detailed information about a specific incident. Args: project_id: Project ID. incident_id: Incident ID. Returns: Incident details including timeline and impact. """ response = await self._request( "GET", f"/api/project/{project_id}/incident/{incident_id}" ) data: dict[str, Any] = response.json() return data

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/jamesbrink/mcp-coroot'

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