get_dashboard
Retrieve a specific dashboard configuration, including all panels, from the MCP Server for Coroot. Input project_id and dashboard_id to access detailed monitoring and analysis data.
Instructions
Get a specific dashboard configuration.
Retrieves the full configuration of a dashboard including all panels.
Args: project_id: Project ID dashboard_id: Dashboard ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dashboard_id | Yes | ||
| project_id | Yes |
Implementation Reference
- src/mcp_coroot/server.py:1336-1346 (handler)The primary MCP tool handler function for 'get_dashboard'. Decorated with @mcp.tool() for registration and defines the input schema via type hints and docstring. Delegates execution to the internal implementation.@mcp.tool() async def get_dashboard(project_id: str, dashboard_id: str) -> dict[str, Any]: """Get a specific dashboard configuration. Retrieves the full configuration of a dashboard including all panels. Args: project_id: Project ID dashboard_id: Dashboard ID """ return await get_dashboard_impl(project_id, dashboard_id) # type: ignore[no-any-return]
- src/mcp_coroot/server.py:1327-1333 (helper)Internal helper implementation that wraps the CorootClient call and formats the response with success indicator.async def get_dashboard_impl(project_id: str, dashboard_id: str) -> dict[str, Any]: """Get dashboard details.""" dashboard = await get_client().get_dashboard(project_id, dashboard_id) return { "success": True, "dashboard": dashboard, }
- src/mcp_coroot/client.py:997-1011 (helper)CorootClient method that executes the HTTP GET request to the Coroot API endpoint to fetch the dashboard configuration.async def get_dashboard(self, project_id: str, dashboard_id: str) -> dict[str, Any]: """Get a specific dashboard. Args: project_id: Project ID. dashboard_id: Dashboard ID. Returns: Dashboard configuration. """ response = await self._request( "GET", f"/api/project/{project_id}/dashboards/{dashboard_id}" ) data: dict[str, Any] = response.json() return data