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
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes |
Implementation Reference
- src/mcp_coroot/server.py:1285-1294 (handler)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]
- src/mcp_coroot/server.py:1276-1283 (handler)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, }
- src/mcp_coroot/client.py:966-976 (helper)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)
- src/mcp_coroot/server.py:1285-1294 (registration)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]