get_threat_models_report
Generate a detailed report on threat models, specifying start and end dates, to analyze and manage security risks effectively using Devici MCP Server.
Instructions
Get threat models report data
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| start | No |
Implementation Reference
- src/devici_mcp_server/server.py:236-242 (handler)MCP tool handler for 'get_threat_models_report', registered via @mcp.tool() decorator. It creates an API client and calls the underlying method to fetch and return the report 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)
- API client helper method that performs the HTTP GET request to '/reports/threat-models' endpoint with optional date range parameters, used by the MCP handler.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)