Skip to main content
Glama

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
NameRequiredDescriptionDefault
threat_idYes

Implementation Reference

  • 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}")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sdelements/devici-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server