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
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes |
Implementation Reference
- src/mcp_coroot/server.py:172-182 (handler)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]
- src/mcp_coroot/server.py:163-169 (helper)Helper implementation for get_project tool that wraps CorootClient.get_project() call and formats the responseasync 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, }
- src/mcp_coroot/client.py:302-313 (helper)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