Skip to main content
Glama
jamesbrink

MCP Server for Coroot

get_incident

Retrieve comprehensive incident details including timeline, affected applications, impact assessment, and resolution status from the Coroot observability platform.

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
project_idYes
incident_idYes

Implementation Reference

  • Core handler implementation for the get_incident MCP tool. Calls CorootClient.get_incident to fetch details and wraps in success 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,
        }
  • MCP tool registration with @mcp.tool() decorator, including schema from parameters and docstring.
    @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]
  • CorootClient helper method that performs the actual HTTP API request to retrieve incident data from the Coroot server.
    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