Skip to main content
Glama

get_threats_by_component

Identify and retrieve threats associated with a specific component using the Devici MCP Server, enabling effective threat modeling and risk management.

Instructions

Get threats for a specific component

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
component_idYes

Implementation Reference

  • MCP tool handler decorated with @mcp.tool() that executes the logic: creates API client context, calls the client's get_threats_by_component method, and returns the result as a string.
    @mcp.tool() async def get_threats_by_component(component_id: str) -> str: """Get threats for a specific component""" async with create_client_from_env() as client: result = await client.get_threats_by_component(component_id) return str(result)
  • API client helper method that performs the actual HTTP GET request to retrieve threats for a given component ID from the Devici API.
    async def get_threats_by_component(self, component_id: str) -> Dict[str, Any]: """Get all threats for specific component.""" return await self._make_request("GET", f"/threats/component/{component_id}")

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