Skip to main content
Glama

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
NameRequiredDescriptionDefault
dashboard_idYes
project_idYes

Implementation Reference

  • 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]
  • 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, }
  • 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

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