Skip to main content
Glama

get_engagement

Retrieve specific engagement details by ID from DefectDojo, enabling efficient vulnerability management and programmatic interaction with engagement data.

Instructions

Get a specific engagement by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
engagement_idYes

Implementation Reference

  • The main handler function for the 'get_engagement' tool. It retrieves the engagement using the DefectDojo client and formats the response.
    async def get_engagement(engagement_id: int) -> Dict[str, Any]: """Get a specific engagement by ID. Args: engagement_id: ID of the engagement to retrieve Returns: Dictionary with status and data/error """ client = get_client() result = await client.get_engagement(engagement_id) if "error" in result: return {"status": "error", "error": result["error"], "details": result.get("details", "")} return {"status": "success", "data": result}
  • Registration of the 'get_engagement' tool with the MCP server in the central tools.py file.
    mcp.tool( name="get_engagement", description="Get a specific engagement by ID" )(get_engagement)
  • Low-level client method that performs the actual API request for getting an engagement.
    async def get_engagement(self, engagement_id: int) -> Dict[str, Any]: """Get a specific engagement by ID.""" return await self._request("GET", f"/api/v2/engagements/{engagement_id}/")
  • Additional registration in the engagements_tools.py module (possibly redundant).
    mcp.tool(name="get_engagement", description="Get a specific engagement by ID")(get_engagement)

Other Tools

Related Tools

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/jamiesonio/defectdojo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server