Check security headers
check_security_headersFetches a public web page and reports its HTTPS redirect chain, security response headers, and cookie flags with a fix for each problem, without checking TLS or page content.
Instructions
Fetches a public web page, following up to 5 redirects, and reports its HTTPS redirect chain, security response headers and cookie flags, with a fix for each problem. Faster than audit_website_security and gives no grade: it does not check TLS, the certificate, DNS, email records or page content. Refuses IP addresses, ports other than 80 and 443, and any host that resolves to a private, loopback, link-local, carrier-grade NAT or cloud metadata address.
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_security_headers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Website address to check, such as example.com or https://example.com/. Only http and https on ports 80 and 443. Any query string is removed before the request. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | Checks that did not finish, were skipped or saw partial data | |
| counts | Yes | ||
| domain | Yes | ||
| target | Yes | Final address after redirects, without query string | |
| headers | Yes | Values from the final response, cleaned and shortened. A header that is not set is left out. | |
| findings | Yes | ||
| redirects | Yes | ||
| scannedAt | Yes | ||
| durationMs | Yes | ||
| cookieCount | Yes | Number of Set-Cookie headers on the final response |