get_application_rca
Analyze application issues to identify root causes of incidents, performance degradation, or failures using AI-powered insights.
Instructions
Get AI-powered root cause analysis for application issues.
Analyzes application problems and provides insights into the root causes of incidents, performance degradation, or failures.
Args: project_id: Project ID app_id: Application ID (format: namespace/kind/name)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| app_id | Yes |
Implementation Reference
- src/mcp_coroot/server.py:1049-1064 (handler)MCP tool handler function for get_application_rca. This is the entry point for the tool execution in the FastMCP server.@mcp.tool() async def get_application_rca( project_id: str, app_id: str, ) -> dict[str, Any]: """Get AI-powered root cause analysis for application issues. Analyzes application problems and provides insights into the root causes of incidents, performance degradation, or failures. Args: project_id: Project ID app_id: Application ID (format: namespace/kind/name) """ return await get_application_rca_impl(project_id, app_id) # type: ignore[no-any-return]
- src/mcp_coroot/server.py:1037-1047 (handler)Implementation function that calls the CorootClient's get_application_rca method and wraps the response.async def get_application_rca_impl( project_id: str, app_id: str, ) -> dict[str, Any]: """Get root cause analysis for an application.""" rca = await get_client().get_application_rca(project_id, app_id) return { "success": True, "rca": rca, }
- src/mcp_coroot/client.py:828-847 (helper)CorootClient method that performs the actual HTTP GET request to the Coroot API's RCA endpoint.async def get_application_rca(self, project_id: str, app_id: str) -> dict[str, Any]: """Get root cause analysis for an application. Args: project_id: Project ID. app_id: Application ID (format: namespace/kind/name). Returns: Root cause analysis results. """ # URL encode the app_id since it contains slashes from urllib.parse import quote encoded_app_id = quote(app_id, safe="") response = await self._request( "GET", f"/api/project/{project_id}/app/{encoded_app_id}/rca" ) data: dict[str, Any] = response.json() return data