Skip to main content
Glama

Security Headers Check

headers_check
Read-only

Rate 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

NameRequiredDescriptionDefault
domainYesHost name of the site, such as www.example.com
include_full_header_valuesNotrue sends each header value and URL whole, instead of cutting it after 500 code points

Output Schema

NameRequiredDescriptionDefault
urlYesIt 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.
creditsYes
findingsYesIt holds one finding for each of the 9 rules, in a fixed order.
checked_atYesWhen 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_toNoPresent 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_codeYesIt is the status of the last answer. A 4xx or 5xx answer is rated too.
redirect_countYesHow many redirects the fetch followed, at most 5.
total_url_lengthNoPresent only when url was cut. It gives the whole length in code points.
redirect_limit_reachedNoPresent only when the redirect limit stopped the fetch on the site. It is then true.
total_redirect_to_lengthNoPresent only when redirect_to was cut. It gives the whole length in code points.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover read-only and open-world safety, so the bar is lower, and the description still adds real behavior: exactly one GET, redirect following capped at 5 hops and restricted to the same host or its www pair, and the fact that failing findings carry remediation text. It does not mention timeouts, rate limits, or failure modes for unreachable domains.

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

Conciseness5/5

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

Two sentences, no filler, and the core action plus fetch mechanics are front-loaded before the note about remediation on failing findings. Every clause carries information an agent would otherwise have to guess.

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

Completeness4/5

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

An output schema exists, so return-value explanation is not required, and the description still flags that findings include remediation for failures. For a one-endpoint, one-required-param check the coverage is close to complete, with only reachability assumptions and any request-cost/rate considerations left unstated.

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 100%, so both parameters are already documented, and the baseline is 3. The description usefully clarifies how `domain` is consumed (interpolated into https://<domain>/ and constraining redirect scope) but says nothing about `include_full_header_values` beyond the schema's own text.

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

Purpose5/5

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

States a specific verb ('rate'), a specific resource ('nine security headers such as CSP, HSTS and Set-Cookie'), and the exact mechanism (one GET to https://<domain>/). This is clearly distinguishable from sibling tools like ssl_check or redirect_chain, which target certificates or hop sequences rather than header posture.

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: audit a site's HTTP security header hygiene for a domain. There is no explicit when-to-use/when-not statement, no prerequisite (e.g. the site must be publicly reachable over HTTPS), and no named alternative such as ssl_check when the agent actually wants TLS configuration rather than headers.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.