Skip to main content
Glama

get_mitigations

Retrieve security mitigations from Devici with paginated results to manage and implement threat protection measures.

Instructions

Get mitigations from Devici with pagination

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
pageNo

Implementation Reference

  • MCP tool handler for 'get_mitigations'. The @mcp.tool() decorator registers the tool and the function executes the logic by calling the Devici API client to fetch mitigations with pagination.
    @mcp.tool() async def get_mitigations(limit: int = 20, page: int = 0) -> str: """Get mitigations from Devici with pagination""" async with create_client_from_env() as client: result = await client.get_mitigations(limit=limit, page=page) return str(result)
  • Supporting API client method that performs the HTTP GET request to retrieve mitigations from the Devici API (/mitigations/), used by the MCP tool handler.
    async def get_mitigations(self, limit: int = 20, page: int = 0) -> Dict[str, Any]: """Get all mitigations.""" params = {"limit": limit, "page": page} return await self._make_request("GET", "/mitigations/", params=params)

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