Skip to main content
Glama

HeaderGuard

Scan a website's HTTP security headers (HSTS, CSP, framing, COOP/CORP/COEP, cookies)

scan_headers
Read-onlyIdempotent

Scan the HTTP security headers of a public website. Returns a 0–100 score and A+–F grade (HTTPS 10, HSTS 15, CSP 25, framing 10, X-Content-Type-Options 10, Referrer-Policy 10, Permissions-Policy 5, COOP 5, CORP 5, cookies 5, minus up to 5 for version-leak headers; without HTTPS the score is capped at 39), each header's status and notes, recommended fix headers, and a link to the full report with copy-paste snippets for nginx, Apache, Cloudflare, Netlify, Vercel and Express. Read-only: it sends ordinary GET requests to the site (following up to 10 redirects, each safety-checked) and never reads page bodies. Same engine and scoring as the HeaderGuard JSON API (GET /api/scan).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL or bare domain to scan, e.g. example.com or https://example.com/login. A bare domain is scanned as https://<domain>/ (plain HTTP if HTTPS does not answer).
include_rawNoAlso return the full /api/scan JSON (redirect chain, all response headers with cookie values redacted, per-platform fix snippets) in structuredContent.raw. Larger output.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
rawNoFull /api/scan response (only when include_raw is true)
urlYesNormalized URL that was scanned
planYes
fixesYes
gradeNoOmitted when the grade is withheld
notesNo
scoreNoOmitted when the grade is withheld
apiUrlNo
cachedNo
versionNo
finalUrlYes
findingsYes
reportUrlYes
scannedAtNo
finalStatusNo
reliabilityYes
gradeWithheldYestrue when the site blocked, rate-limited or challenged the scanner
redirectCountNo
gradeWithheldReasonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources