Skip to main content
Glama
jamesbrink

MCP Server for Coroot

get_project

Retrieve project details and configuration from Coroot observability platform to access settings, integrations, and monitoring setup.

Instructions

Get project details and configuration.

Retrieves comprehensive information about a project including its settings, integrations, and configuration.

Args: project_id: Project ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYes

Implementation Reference

  • MCP tool handler for 'get_project'. Decorated with @mcp.tool() for registration and executes by calling the implementation helper which invokes CorootClient.get_project()
    @mcp.tool()
    async def get_project(project_id: str) -> dict[str, Any]:
        """Get project details and configuration.
    
        Retrieves comprehensive information about a project including
        its settings, integrations, and configuration.
    
        Args:
            project_id: Project ID
        """
        return await get_project_impl(project_id)  # type: ignore[no-any-return]
  • Helper implementation for get_project tool that wraps CorootClient.get_project() call and formats the response
    async def get_project_impl(project_id: str) -> dict[str, Any]:
        """Get project details."""
        project = await get_client().get_project(project_id)
        return {
            "success": True,
            "project": project,
        }
  • CorootClient method that performs the actual HTTP GET request to retrieve project details from /api/project/{project_id}
    async def get_project(self, project_id: str) -> dict[str, Any]:
        """Get project details.
    
        Args:
            project_id: Project ID.
    
        Returns:
            Project configuration dictionary.
        """
        response = await self._request("GET", f"/api/project/{project_id}")
        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