Skip to main content
Glama

list_dashboards

Retrieve all user-created dashboards and their configurations for a specific project using the

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 function for 'list_dashboards', decorated with @mcp.tool() which handles the tool execution by calling the implementation.
    @mcp.tool() 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]
  • Implementation function that executes the core logic: calls CorootClient.list_dashboards and formats the response.
    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 helper method that makes the actual HTTP API request to list project dashboards and parses the JSON response.
    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)
  • Registration of the 'list_dashboards' tool using FastMCP @mcp.tool() decorator.
    @mcp.tool() 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]

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