parse_http_headers
Parse a raw HTTP headers block into a structured JSON object. Detects multi-value headers, masks Authorization values, and optionally audits for missing security headers (HSTS, CSP, X-Frame-Options, etc.).
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"headers": "Content-Type: text/html\nSet-Cookie: a=1\nSet-Cookie: b=2"
},
"name": "parse_http_headers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| headers | Yes | Raw HTTP headers (one "Name: Value" per line) | |
| analyze_security | No | Audit for missing security headers (default: true) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parsed | No | ||
| security | No | ||
| header_count | No |