Skip to main content
Glama

update_dashboard

Modify dashboard configurations in Coroot to adjust panels, layout, or settings for monitoring applications and infrastructure.

Instructions

Update an existing dashboard configuration.

Updates dashboard panels, layout, or other settings.

Args: project_id: Project ID dashboard_id: Dashboard ID dashboard: Updated dashboard configuration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYes
dashboard_idYes
dashboardYes

Implementation Reference

  • Primary MCP tool handler for 'update_dashboard'. Registered via @mcp.tool() decorator. Delegates to internal impl.
    @mcp.tool() async def update_dashboard( project_id: str, dashboard_id: str, dashboard: dict[str, Any] ) -> dict[str, Any]: """Update an existing dashboard configuration. Updates dashboard panels, layout, or other settings. Args: project_id: Project ID dashboard_id: Dashboard ID dashboard: Updated dashboard configuration """ return await update_dashboard_impl( # type: ignore[no-any-return] project_id, dashboard_id, dashboard )
  • Internal error-handling wrapper that calls CorootClient.update_dashboard and formats the response.
    @handle_errors async def update_dashboard_impl( project_id: str, dashboard_id: str, dashboard: dict[str, Any] ) -> dict[str, Any]: """Update a dashboard.""" result = await get_client().update_dashboard(project_id, dashboard_id, dashboard) return { "success": True, "message": "Dashboard updated successfully", "dashboard": result, }
  • CorootClient method that executes the HTTP POST request to the Coroot API to update the dashboard configuration.
    async def update_dashboard( self, project_id: str, dashboard_id: str, dashboard: dict[str, Any] ) -> dict[str, Any]: """Update an existing dashboard. Args: project_id: Project ID. dashboard_id: Dashboard ID. dashboard: Updated dashboard configuration. Returns: Updated dashboard. """ response = await self._request( "POST", f"/api/project/{project_id}/dashboards/{dashboard_id}", json=dashboard, ) data: dict[str, Any] = response.json() return data
  • FastMCP tool registration decorator for the update_dashboard tool.
    @mcp.tool()

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