Skip to main content
Glama

cancel_scan

Stop an active scan on Intruder.IO by specifying the scan ID, ensuring immediate cancellation of ongoing vulnerability assessments.

Instructions

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

Input Schema

NameRequiredDescriptionDefault
scan_idYes

Input Schema (JSON Schema)

{ "properties": { "scan_id": { "title": "Scan Id", "type": "integer" } }, "required": [ "scan_id" ], "title": "cancel_scanArguments", "type": "object" }

Implementation Reference

  • The MCP tool handler for 'cancel_scan'. Decorated with @mcp.tool() to register it as an MCP tool. Accepts a scan_id parameter and delegates to the IntruderAPI.cancel_scan method, returning a formatted success message.
    @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}"
  • Helper method in the IntruderAPI class that executes the HTTP POST request to the Intruder API endpoint to cancel a specific scan by ID.
    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