get_threat_model
Retrieve a specific threat model by its unique ID to analyze security risks and implement appropriate mitigations.
Instructions
Get a specific threat model by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threat_model_id | Yes |
Implementation Reference
- src/devici_mcp_server/server.py:97-102 (handler)MCP tool handler for 'get_threat_model'. Retrieves a specific threat model by ID using the API client and returns the result as a string.@mcp.tool() async def get_threat_model(threat_model_id: str) -> str: """Get a specific threat model by ID""" async with create_client_from_env() as client: result = await client.get_threat_model(threat_model_id) return str(result)
- API client helper method that performs the HTTP GET request to fetch the threat model from the Devici API.async def get_threat_model(self, threat_model_id: str) -> Dict[str, Any]: """Get specific threat model by ID.""" return await self._make_request("GET", f"/threat-models/{threat_model_id}")