Skip to main content
Glama

create_threat_model

Generate a new threat model with specified details like name, collection ID, and properties to identify and mitigate security risks effectively using the Devici MCP Server.

Instructions

Create a new threat model

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collection_idYes
descriptionNo
nameYes
other_propertiesYes

Implementation Reference

  • The MCP tool handler for 'create_threat_model'. Decorated with @mcp.tool() for registration and implements the logic to create a threat model by calling the API client.
    @mcp.tool() async def create_threat_model(name: str, collection_id: str, description: str = None, **other_properties) -> str: """Create a new threat model""" async with create_client_from_env() as client: threat_model_data = { "name": name, "collection_id": collection_id } if description: threat_model_data["description"] = description threat_model_data.update(other_properties) result = await client.create_threat_model(threat_model_data) return str(result)
  • API client helper method that sends a POST request to the /threat-models endpoint to create the threat model.
    async def create_threat_model(self, threat_model_data: Dict[str, Any]) -> Dict[str, Any]: """Create new threat model.""" return await self._make_request("POST", "/threat-models", json_data=threat_model_data)

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