get_mitigation
Retrieve specific security mitigation details by ID to address vulnerabilities in threat models.
Instructions
Get a specific mitigation by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mitigation_id | Yes |
Implementation Reference
- src/devici_mcp_server/server.py:179-185 (handler)MCP tool handler function for 'get_mitigation'. Registers the tool via @mcp.tool() decorator and implements the logic by calling the API client to fetch mitigation data by ID and return as string.@mcp.tool() async def get_mitigation(mitigation_id: str) -> str: """Get a specific mitigation by ID""" async with create_client_from_env() as client: result = await client.get_mitigation(mitigation_id) return str(result)
- Helper method in API client that performs the HTTP GET request to retrieve a specific mitigation by its ID from the Devici API.async def get_mitigation(self, mitigation_id: str) -> Dict[str, Any]: """Get specific mitigation by ID.""" return await self._make_request("GET", f"/mitigations/{mitigation_id}")