Skip to main content
Glama

get_threat_models_report

Retrieve threat models report data from the Devici API to analyze security risks and vulnerabilities within specified time periods.

Instructions

Get threat models report data

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
startNo
endNo

Implementation Reference

  • MCP tool handler function for 'get_threat_models_report'. It is registered via @mcp.tool() decorator and executes the tool logic by creating an API client instance and calling its get_threat_models_report method, returning the result as string.
    @mcp.tool() async def get_threat_models_report(start: str = None, end: str = None) -> str: """Get threat models report data""" async with create_client_from_env() as client: result = await client.get_threat_models_report(start=start, end=end) return str(result)
  • Supporting API client method that implements the core logic by making an authenticated HTTP GET request to the Devici API endpoint '/reports/threat-models' with optional date range parameters.
    async def get_threat_models_report( self, start: Optional[str] = None, end: Optional[str] = None ) -> Dict[str, Any]: """Get threat models reports.""" params = {} if start: params["start"] = start if end: params["end"] = end return await self._make_request("GET", "/reports/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