Skip to main content
Glama

get_threat_model

Retrieve a specific threat model using its unique ID with the Devici API. Ideal for accessing detailed threat analysis and security insights.

Instructions

Get a specific threat model by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
threat_model_idYes

Implementation Reference

  • MCP tool handler function that executes the get_threat_model tool by calling the API client to fetch the threat model by ID and returning it as a string.
    @mcp.tool() async def get_threat_model(threat_model_id: str) -> str: """Get a specific threat model by ID""" async with create_client_from_env() as client: result = await client.get_threat_model(threat_model_id) return str(result)
  • API client helper method that performs the HTTP GET request to the Devici API endpoint for retrieving a specific threat model.
    async def get_threat_model(self, threat_model_id: str) -> Dict[str, Any]: """Get specific threat model by ID.""" return await self._make_request("GET", f"/threat-models/{threat_model_id}")
  • The @mcp.tool() decorator registers the get_threat_model function as an MCP tool.
    @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