Skip to main content
Glama

list_dashboards

Retrieve all user-created dashboards and their configurations for a specified project in the Coroot observability platform.

Instructions

List all custom dashboards for a project.

Returns all user-created dashboards with their configurations.

Args: project_id: Project ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYes

Implementation Reference

  • MCP tool handler for 'list_dashboards'. This is the entry point for the tool execution, decorated with @mcp.tool(). It calls the implementation helper.
    async def list_dashboards(project_id: str) -> dict[str, Any]: """List all custom dashboards for a project. Returns all user-created dashboards with their configurations. Args: project_id: Project ID """ return await list_dashboards_impl(project_id) # type: ignore[no-any-return]
  • Helper function that invokes the CorootClient's list_dashboards method and formats the response with success indicator.
    async def list_dashboards_impl(project_id: str) -> dict[str, Any]: """List all dashboards.""" dashboards = await get_client().list_dashboards(project_id) return { "success": True, "dashboards": dashboards, }
  • CorootClient method that makes the actual HTTP GET request to the Coroot API endpoint /api/project/{project_id}/dashboards to fetch the list of dashboards.
    async def list_dashboards(self, project_id: str) -> dict[str, Any]: """List all custom dashboards for a project. Args: project_id: Project ID. Returns: List of dashboards. """ response = await self._request("GET", f"/api/project/{project_id}/dashboards") return self._parse_json_response(response)
  • FastMCP tool registration decorator that registers the list_dashboards function as an MCP 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