Security Headers Check
headers_checkRate nine security headers of a web site, such as CSP, HSTS and Set-Cookie, from one GET to https:/// that follows up to 5 redirects on the same host or its www pair. Each finding that does not pass has a remediation.
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": {
"domain": "<domain>"
},
"name": "headers_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Host name of the site, such as www.example.com | |
| include_full_header_values | No | true sends each header value and URL whole, instead of cutting it after 500 code points |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | It is the URL of the last request, without its query. A value longer than 500 code points is cut there, unless include_full_header_values is true. | |
| credits | Yes | ||
| findings | Yes | It holds one finding for each of the 9 rules, in a fixed order. | |
| checked_at | Yes | When the check ran, in UTC, as YYYY-MM-DDTHH:MM:SSZ. A cached answer keeps the time of its own check, up to an hour old. | |
| redirect_to | No | Present only when the last answer is a redirect the fetch did not follow and it names a target. It holds that target, cut as url is. | |
| status_code | Yes | It is the status of the last answer. A 4xx or 5xx answer is rated too. | |
| redirect_count | Yes | How many redirects the fetch followed, at most 5. | |
| total_url_length | No | Present only when url was cut. It gives the whole length in code points. | |
| redirect_limit_reached | No | Present only when the redirect limit stopped the fetch on the site. It is then true. | |
| total_redirect_to_length | No | Present only when redirect_to was cut. It gives the whole length in code points. |