Skip to main content
Glama

get_threat_models

Retrieve threat models from Devici with paginated results for security analysis and management.

Instructions

Get threat models from Devici with pagination

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
pageNo

Implementation Reference

  • MCP tool handler and registration for 'get_threat_models'. This async function is decorated with @mcp.tool(), executes the tool logic by calling the API client, and returns the result as string.
    @mcp.tool() async def get_threat_models(limit: int = 20, page: int = 0) -> str: """Get threat models from Devici with pagination""" async with create_client_from_env() as client: result = await client.get_threat_models(limit=limit, page=page) return str(result)
  • Supporting API client method that performs the actual HTTP GET request to the '/threat-models/' endpoint with pagination parameters.
    async def get_threat_models(self, limit: int = 20, page: int = 0) -> Dict[str, Any]: """Get all threat models.""" params = {"limit": limit, "page": page} return await self._make_request("GET", "/threat-models/", 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