Skip to main content
Glama

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
NameRequiredDescriptionDefault
project_idYes
app_idYes

Implementation Reference

  • 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]
  • 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, }
  • 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

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