Skip to main content
Glama

check_security_headers

Inspect an HTTP response for baseline hardening headers—Content-Security-Policy, X-Content-Type-Options, Referrer-Policy, and HSTS on HTTPS—to identify missing protections before shipping.

Instructions

Check the response for baseline hardening headers: Content-Security-Policy, X-Content-Type-Options, Referrer-Policy (and HSTS on https).

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

NameRequiredDescriptionDefault
urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations exist, so the description carries the burden. It discloses the specific header set and the conditional HSTS-on-https rule, which is genuinely useful behavior. But it says nothing about whether it performs a live network request, how it handles unreachable/non-TLS URLs, redirects, or what the response shape looks like, which are significant gaps for an unannotated tool.

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 compact sentence with the resource and the checked headers front-loaded; the parenthetical https qualifier is well-placed. The stray line break splitting 'Content-Security-Policy,' is a minor formatting blemish but nothing is wasted.

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

Completeness3/5

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

For a one-parameter read-only audit tool with no annotations and no output schema, the description covers what is checked and the https caveat, which is the core contract. It stops short of explaining the outcome (pass/fail structure, missing-header reporting) or error behavior, leaving an agent to guess what it gets 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 description coverage is 0% for the single 'url' parameter, so the description must compensate; it implicitly frames the url as the request target but adds no detail on accepted formats (full URL vs. host), scheme requirements, or whether http:// is allowed given the HSTS-on-https clause.

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 ('Check the response for baseline hardening headers') and enumerates exactly which headers are inspected, plus the https condition for HSTS. It is distinguishable from siblings like check_session_cookies or check_csrf_origin_guard by the header set it names, though it never mentions siblings explicitly.

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

Usage Guidelines3/5

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

Usage is implied by the header list: an agent can infer it should run this against a URL when auditing HTTP response hardening. However there is no explicit when-to-use vs. when-not guidance, no note on prerequisites (does the tool fetch the URL itself?), and no mention of the sibling checks that cover related security concerns.

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