get_mitigations_by_threat
Retrieve security countermeasures for a specific threat identifier to address vulnerabilities in threat modeling workflows.
Instructions
Get mitigations for a specific threat
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threat_id | Yes |
Implementation Reference
- src/devici_mcp_server/server.py:187-192 (handler)MCP tool handler decorated with @mcp.tool(). It creates an API client instance and delegates to the client's get_mitigations_by_threat method, returning the result as string.@mcp.tool() async def get_mitigations_by_threat(threat_id: str) -> str: """Get mitigations for a specific threat""" async with create_client_from_env() as client: result = await client.get_mitigations_by_threat(threat_id) return str(result)
- API client method that performs the HTTP GET request to fetch mitigations by threat ID from the Devici API endpoint /mitigations/threat/{threat_id}.async def get_mitigations_by_threat(self, threat_id: str) -> Dict[str, Any]: """Get all mitigations for specific threat.""" return await self._make_request("GET", f"/mitigations/threat/{threat_id}")