audit_secheaders
Full security headers + TLS audit of a website URL. Fetches the target server-side, probes TLS on port 443, checks whether the plain-HTTP variant redirects to HTTPS, and runs 11 weighted checks: HTTPS redirect enforcement, TLS modernity (negotiated version plus TLS 1.0/1.1 acceptance), certificate validity (days to expiry, issuer), HSTS (max-age against the one-year floor, includeSubDomains/preload), Content-Security-Policy (presence plus 'unsafe-inline'/'unsafe-eval'/bare-* weaknesses), X-Content-Type-Options nosniff, frame protection (X-Frame-Options or CSP frame-ancestors), Referrer-Policy, Permissions-Policy, cookie flags (Secure/HttpOnly/SameSite on every Set-Cookie), and Server/X-Powered-By version disclosure. These are the findings behind failed security reviews, browser warnings, session hijacking, clickjacking, and downgrade attacks. Returns machine-readable JSON: 0-100 score, A-F grade, an exposure-risk level (Low/Moderate/Elevated/High) with the failing transport/header trigger checks named, per-check pass/partial/fail/unknown with evidence, a site block (HTTP status, TLS version, certificate days left and issuer, security headers seen), and the top 3 prioritized fixes. HONEST LIMITS: a single-response snapshot at scan time — header posture can differ per path/app on the same host, TLS is probed on 443 only, and this is not a penetration test. Checks that cannot be evaluated return unknown, never guesses. Cost: $1.50 USDC on Base per call, paid via x402 — the caller's agent pays from its owner's approved wallet; no API key needed. Use this before a launch or security review, after a server or CDN change, or to triage a header/TLS finding.
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": "audit_secheaders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Website URL to audit (https preferred), e.g. https://example.com |