Skip to main content
Glama

get_mitigation

Retrieve a specific mitigation by its unique ID using the Devici MCP Server, enabling precise access to threat modeling resources for effective risk management.

Instructions

Get a specific mitigation by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mitigation_idYes

Implementation Reference

  • MCP tool handler for 'get_mitigation': fetches the mitigation by ID using the API client and returns the result as a 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 that performs the HTTP GET request to retrieve a specific mitigation by 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}")
  • The @mcp.tool() decorator registers this function as the MCP tool named 'get_mitigation'.
    @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)

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/geoffwhittington/devici-mcp'

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