Skip to main content
Glama

Audit HTTP security headers

audit_headers

Audits HTTP headers against a strict security baseline, analyzes CSP and Set-Cookie, and validates CRLF to identify header risks.

Instructions

Audit HTTP headers with headersafe, including CSP and Set-Cookie analysis, CRLF validation, and comparison against a strict security header baseline.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "audit_headers"
  }
}

Input Schema

NameRequiredDescriptionDefault
cspNo
headersNo
setCookieNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It does disclose meaningful behavior beyond a name restatement – CSP analysis, Set-Cookie analysis, CRLF validation, and comparison against a strict baseline – which implies a read-only inspection returning findings. However, it says nothing about severity levels, how the 'strict baseline' is defined or configured, or what happens with partial input (all parameters are optional).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence with the verb and resource front-loaded and the capability list following. It is efficient, though the phrase 'with headersafe' is an opaque product reference that consumes space without adding actionable meaning for an agent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with a nested object parameter, three untyped/unexplained parameters, no annotations, and no output schema, the definition is too thin. An agent is left guessing the shape of the headers map and the structure of the audit findings it should expect back.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate, and it partially does by naming CSP and Set-Cookie as analysis targets, which maps to the csp and setCookie parameters. It never explains the headers parameter as a name-to-value object map, nor the accepted formats (single string vs array for setCookie), leaving the most structurally complex parameter undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Audit HTTP headers') and enumerates the checks performed (CSP, Set-Cookie, CRLF validation, baseline comparison), which tells an agent what kind of analysis comes back. It stops short of differentiating from the overlapping siblings audit_cookie and audit_cors, so an agent cannot tell from the text alone whether cookie/CORS checks belong here or in those tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance, and no prerequisites such as where the header set should come from. The overlap with audit_cookie and audit_cors makes this gap material: the description mentions Set-Cookie analysis without saying whether audit_cookie should be preferred for cookie-only work.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.