get_threat
Retrieve detailed information about a specific security threat using its unique identifier to analyze and manage security risks.
Instructions
Get a specific threat by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threat_id | Yes |
Implementation Reference
- src/devici_mcp_server/server.py:154-159 (handler)MCP tool handler for 'get_threat' that fetches a threat by ID using the API client and returns it as a string.@mcp.tool() async def get_threat(threat_id: str) -> str: """Get a specific threat by ID""" async with create_client_from_env() as client: result = await client.get_threat(threat_id) return str(result)
- API client helper method that makes the HTTP GET request to retrieve a specific threat by ID from the Devici API.async def get_threat(self, threat_id: str) -> Dict[str, Any]: """Get specific threat by ID.""" return await self._make_request("GET", f"/threats/{threat_id}")