get_dashboard_types
Retrieve available chart types for creating dashboards in the Devici threat modeling platform.
Instructions
Get available dashboard chart types
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_dashboard_types"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/devici_mcp_server/server.py:213-219 (handler)MCP tool handler for 'get_dashboard_types'. Decorated with @mcp.tool() to register and define the tool execution logic, which delegates to the API client.
@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) - API client helper method that performs the actual HTTP GET request to '/dashboard/types' to retrieve the list of dashboard types.
async def get_dashboard_types(self) -> List[str]: """Get dashboard chart types.""" return await self._make_request("GET", "/dashboard/types")