check_url
Analyze website URLs for security threats by checking domain age, SSL certificates, redirect chains, brand impersonation, and multiple threat intelligence sources to determine risk levels.
Instructions
Check a website URL for safety. Analyzes domain age, SSL certificate, redirect chains, brand impersonation, Google Web Risk, URLhaus, ThreatFox, and community reports. Returns risk score and detailed signals.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "check_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to check (must include protocol, e.g. https://example.com) | |
| force_refresh | No | Force a fresh lookup, bypassing cache (default: false) |
Implementation Reference
- src/index.ts:186-193 (handler)The handler implementation for the 'check_url' tool which sends a POST request to the API.
async ({ url, force_refresh }) => { try { const data = await apiPost('/api/v1/url/lookup', { url, force_refresh }); return jsonResult(data); } catch (err) { return errorResult(err instanceof Error ? err.message : 'URL lookup failed'); } }, - src/index.ts:172-194 (registration)Registration of the 'check_url' tool using server.tool.
server.tool( 'check_url', 'Check a website URL for safety. Analyzes domain age, SSL certificate, redirect chains, brand impersonation, Google Web Risk, URLhaus, ThreatFox, and community reports. Returns risk score and detailed signals.', { url: z.string().describe('URL to check (must include protocol, e.g. https://example.com)'), force_refresh: z.boolean().optional().describe('Force a fresh lookup, bypassing cache (default: false)'), }, { title: 'Check URL Safety', readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true, }, async ({ url, force_refresh }) => { try { const data = await apiPost('/api/v1/url/lookup', { url, force_refresh }); return jsonResult(data); } catch (err) { return errorResult(err instanceof Error ? err.message : 'URL lookup failed'); } }, );