get_mitigation
Retrieve a specific security mitigation by its unique ID from the Devici threat modeling platform to access detailed protection measures and implementation guidance.
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-184 (handler)The primary MCP tool handler for 'get_mitigation'. Decorated with @mcp.tool() for automatic registration and schema inference from signature. Creates an authenticated API client and calls get_mitigation on it, converting result to 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)
- API client helper method implementing the core logic: authenticated GET request to the Devici API endpoint /mitigations/{mitigation_id}.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}")