Skip to main content
Glama

cancel_scan

Stop an active security scan in Intruder.IO by providing the scan ID to terminate ongoing vulnerability assessments.

Instructions

Cancel a running scan. Args: scan_id: The ID of the scan to cancel

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scan_idYes

Implementation Reference

  • The handler function for the 'cancel_scan' tool, registered via @mcp.tool() decorator. It invokes the API client's cancel_scan method and formats the response.
    @mcp.tool() async def cancel_scan(scan_id: int) -> str: """ Cancel a running scan. Args: scan_id: The ID of the scan to cancel """ result = api.cancel_scan(scan_id) return f"Cancelled scan {scan_id}: {result}"
  • Core implementation of cancel_scan in the IntruderAPI class. Performs the HTTP POST request to the Intruder API endpoint to cancel the specified scan.
    def cancel_scan(self, scan_id: int) -> str: return self.client.post(f"{self.base_url}/scans/{scan_id}/cancel/").text

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/intruder-io/intruder-mcp'

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