get_dashboard
Retrieve dashboard configuration and panel details from the Coroot observability platform to monitor application performance metrics.
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 |
|---|---|---|---|
| project_id | Yes | ||
| dashboard_id | Yes |
Implementation Reference
- src/mcp_coroot/server.py:1336-1347 (handler)MCP tool handler function registered with @mcp.tool(). This is the entry point for the 'get_dashboard' tool, which delegates to the implementation helper.@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-1334 (helper)Helper implementation function wrapped with error handling that calls the CorootClient to retrieve dashboard details and formats the response.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 actual HTTP GET request to the Coroot API endpoint to fetch the specific 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