get_dashboard_types
Retrieve available dashboard chart types to enhance visual data representation in Devici MCP Server for effective threat modeling and resource management.
Instructions
Get available dashboard chart types
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/devici_mcp_server/server.py:213-219 (handler)The MCP tool handler for get_dashboard_types. Decorated with @mcp.tool() for automatic registration. Creates an API client, calls client.get_dashboard_types(), and returns the result as a string.@mcp.tool() async def get_dashboard_types() -> str: """Get available dashboard chart types""" async with create_client_from_env() as client: result = await client.get_dashboard_types() return str(result)
- Helper method in the DeviciAPIClient class that performs the actual API call to retrieve the list of available dashboard types via GET /dashboard/types.async def get_dashboard_types(self) -> List[str]: """Get dashboard chart types.""" return await self._make_request("GET", "/dashboard/types")
- src/devici_mcp_server/server.py:213-213 (registration)The @mcp.tool() decorator registers the get_dashboard_types function as an MCP tool.@mcp.tool()