Skip to main content
Glama

get_mitigations

Retrieve paginated mitigation data from the Devici API to manage threat modeling resources efficiently. Specify page and limit for targeted results.

Instructions

Get mitigations from Devici with pagination

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
pageNo

Implementation Reference

  • MCP tool handler function that executes the get_mitigations tool logic by calling the API client.
    @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)
  • API client helper method that performs the HTTP request to fetch mitigations from the Devici API.
    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)
  • Registration of the get_mitigations tool using the FastMCP decorator.
    @mcp.tool()

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