get_mitigations_by_threat
Retrieve mitigation strategies for a specific threat using the Devici MCP Server, enabling effective threat management and response.
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 for get_mitigations_by_threat, decorated with @mcp.tool(). It creates an API client context, calls the client's get_mitigations_by_threat method, and returns the result as a 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 helper method that performs an authenticated GET request to the endpoint /mitigations/threat/{threat_id} to retrieve mitigations associated with the given threat.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}")