get_threat_models_report
Retrieve threat modeling reports 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-242 (handler)The MCP tool handler and registration for 'get_threat_models_report'. This function is decorated with @mcp.tool(), making it the primary tool implementation exposed via the MCP server. It creates an API client context and delegates to the client's get_threat_models_report method, returning the result as a string.@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 helper method in the DeviciAPIClient class that implements the core logic for fetching the threat models report. It builds query parameters from start and end dates and performs an authenticated GET request to the Devici API endpoint '/reports/threat-models'.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)