get_threat_models_report
Retrieve threat models report data to analyze security risks and vulnerabilities within specified time periods.
Instructions
Get threat models report data
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | No | ||
| end | No |
Implementation Reference
- src/devici_mcp_server/server.py:236-241 (handler)The MCP tool handler function for 'get_threat_models_report', decorated with @mcp.tool() which registers it as an MCP tool. It creates an authenticated API client and calls the client's get_threat_models_report method to fetch the report data.@mcp.tool() async def get_threat_models_report(start: str = None, end: str = None) -> str: """Get threat models report data""" async with create_client_from_env() as client: result = await client.get_threat_models_report(start=start, end=end) return str(result)
- Supporting utility in the DeviciAPIClient class that makes an authenticated HTTP GET request to the '/reports/threat-models' endpoint with optional date range parameters.async def get_threat_models_report( self, start: Optional[str] = None, end: Optional[str] = None ) -> Dict[str, Any]: """Get threat models reports.""" params = {} if start: params["start"] = start if end: params["end"] = end return await self._make_request("GET", "/reports/threat-models", params=params)