Skip to main content
Glama

get_application_rca

Identify root causes of application issues using AI-powered analysis. Input project and application IDs to diagnose incidents, performance degradation, or failures effectively.

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

Implementation Reference

  • Core handler function that executes the tool logic by making an authenticated HTTP GET request to the Coroot API's RCA (Root Cause Analysis) endpoint and returns the parsed JSON response.
    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
  • MCP tool registration via @mcp.tool() decorator on the handler function, including input schema via type hints and comprehensive docstring describing parameters and purpose.
    @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]
  • Intermediate handler implementation that wraps the client call, adds success wrapper, and is decorated with error handling.
    @handle_errors 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, }

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