scan_url
Analyze URLs for threats and malicious content to identify potential security risks before accessing suspicious links.
Instructions
Analyze a URL for threats and malicious content.
Args: url: The URL to analyze is_public: Whether the scan results should be public
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| is_public | No |
Implementation Reference
- src/threatzone_mcp/server.py:238-252 (handler)The 'scan_url' tool handler function. Registered via @app.tool decorator. Takes a URL and optional is_public flag, sends POST request to ThreatZone API /public-api/scan/url endpoint, returns the API response.@app.tool async def scan_url(url: str, is_public: bool = False) -> Dict[str, Any]: """ Analyze a URL for threats and malicious content. Args: url: The URL to analyze is_public: Whether the scan results should be public """ data = { "url": url, "isPublic": is_public } return await get_client().post("/public-api/scan/url", data=data)