Skip to main content
Glama

create_scan

Initiate a new scan on Intruder.IO, specifying target addresses and tags to assess network security vulnerabilities systematically.

Instructions

Create a new scan. Args: target_addresses: List of target addresses to scan tag_names: List of tag names to scan targets with these tags

Input Schema

NameRequiredDescriptionDefault
tag_namesNo
target_addressesNo

Input Schema (JSON Schema)

{ "properties": { "tag_names": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Tag Names" }, "target_addresses": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Target Addresses" } }, "title": "create_scanArguments", "type": "object" }

Implementation Reference

  • MCP tool handler for 'create_scan'. Decorated with @mcp.tool() for registration. Calls the API client to create a scan and returns a formatted string with scan ID and type.
    @mcp.tool() async def create_scan(target_addresses: Optional[List[str]] = None, tag_names: Optional[List[str]] = None) -> str: """ Create a new scan. Args: target_addresses: List of target addresses to scan tag_names: List of tag names to scan targets with these tags """ scan = api.create_scan(target_addresses=target_addresses, tag_names=tag_names) return f"Created scan {scan.id} ({scan.scan_type})"
  • Pydantic model used as input schema for the create_scan API request, matching the tool parameters.
    class ScanRequest(BaseModel): target_addresses: Optional[List[str]] = None tag_names: Optional[List[str]] = Field(None, min_items=1)
  • Helper method in IntruderAPI client that sends POST request to the Intruder API to create a scan, used by the tool handler.
    def create_scan(self, target_addresses: Optional[List[str]] = None, tag_names: Optional[List[str]] = None) -> Scan: data = ScanRequest(target_addresses=target_addresses, tag_names=tag_names) return Scan(**self.client.post(f"{self.base_url}/scans/", json=data.dict(exclude_none=True)).json())
  • Pydantic model for the Scan response object returned by the API.
    class Scan(BaseModel): id: int status: ScanStatusField created_at: datetime target_addresses: Optional[List[str]] = None scan_type: ScanTypeEnum schedule_period: SchedulePeriodEnum start_time: Optional[datetime] = None completed_time: Optional[datetime] = None

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