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
| Name | Required | Description | Default |
|---|---|---|---|
| incident_id | Yes | ||
| project_id | Yes |
Implementation Reference
- src/mcp_coroot/server.py:1255-1269 (handler)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]
- src/mcp_coroot/server.py:1246-1253 (helper)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, }
- src/mcp_coroot/client.py:948-962 (helper)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