Skip to main content
Glama
jamesbrink

MCP Server for Coroot

get_risks_overview

Analyze application risk assessment overview to identify high-risk applications, track risk trends over time, and highlight critical issues requiring attention for compliance and security.

Instructions

Get risk assessment overview.

Returns comprehensive risk analysis across all applications:

  • High-risk applications

  • Risk trends over time

  • Critical issues requiring attention

  • Compliance and security risks

Args: project_id: Project ID query: Search/filter query (optional)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYes
queryNo

Implementation Reference

  • MCP tool handler function for 'get_risks_overview'. This is the entry point decorated with @mcp.tool() that defines the tool schema via type hints and delegates to the implementation.
    @mcp.tool()
    async def get_risks_overview(
        project_id: str,
        query: str | None = None,
    ) -> dict[str, Any]:
        """Get risk assessment overview.
    
        Returns comprehensive risk analysis across all applications:
        - High-risk applications
        - Risk trends over time
        - Critical issues requiring attention
        - Compliance and security risks
    
        Args:
            project_id: Project ID
            query: Search/filter query (optional)
        """
        return await get_risks_overview_impl(project_id, query)  # type: ignore[no-any-return]
  • Error-handling wrapper that calls the CorootClient method and formats the response.
    @handle_errors
    async def get_risks_overview_impl(
        project_id: str,
        query: str | None = None,
    ) -> dict[str, Any]:
        """Get risks overview."""
        overview = await get_client().get_risks_overview(project_id, query)
        return {
            "success": True,
            "overview": overview,
        }
  • Core CorootClient method that executes the HTTP GET request to the Coroot API endpoint for risks overview.
    async def get_risks_overview(
        self,
        project_id: str,
        query: str | None = None,
    ) -> dict[str, Any]:
        """Get risk assessment overview.
    
        Args:
            project_id: Project ID.
            query: Search/filter query.
    
        Returns:
            Risk assessment overview data.
        """
        params = {}
        if query:
            params["query"] = query
    
        response = await self._request(
            "GET",
            f"/api/project/{project_id}/overview/risks",
            params=params,
        )
        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