Skip to main content
Glama

get_dashboard_data

Retrieve dashboard data for specific chart types in Devici MCP Server. Input parameters include chart type, limit, page, start and end dates, and project ID for precise data extraction.

Instructions

Get dashboard data for a specific chart type

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chart_typeYes
endNo
limitNo
pageNo
project_idNo
startNo

Implementation Reference

  • The MCP tool handler for 'get_dashboard_data'. Decorated with @mcp.tool() for automatic registration. Fetches data via API client and returns as string.
    @mcp.tool() async def get_dashboard_data(chart_type: str, limit: int = 20, page: int = 0, start: str = None, end: str = None, project_id: str = None) -> str: """Get dashboard data for a specific chart type""" async with create_client_from_env() as client: result = await client.get_dashboard_data( chart_type=chart_type, limit=limit, page=page, start=start, end=end, project_id=project_id ) return str(result)
  • Supporting API client method that makes the HTTP request to fetch dashboard data, used by the MCP handler.
    async def get_dashboard_data( self, chart_type: str, limit: int = 20, page: int = 0, start: Optional[str] = None, end: Optional[str] = None, project_id: Optional[str] = None ) -> List[Dict[str, Any]]: """Get dashboard data by specific chart type.""" params = { "limit": limit, "page": page, "type": chart_type } if start: params["start"] = start if end: params["end"] = end if project_id: params["projectId"] = project_id return await self._make_request("GET", "/dashboard/", params=params)

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/geoffwhittington/devici-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server