Skip to main content
Glama

HTTP security headers

security_headers
Read-only

Grade a website's HTTP security headers A-F, list missing protections, and flag exposed server version info to identify security configuration gaps.

Instructions

Grade a website's HTTP security headers (HSTS, CSP, X-Frame-Options, Referrer-Policy and more) A-F, list what is missing, and flag exposed server version info. Costs $0.001 per call.

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": "security_headers"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesWebsite URL or domain, e.g. https://example.com

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description carries most of the burden and does add real value: it discloses the grading scale (A-F), the three categories of findings returned, and an explicit per-call price of $0.001. What it omits is how the page is fetched (redirect following, HTTPS enforcement) and whether results are cached or time-sensitive.

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?

One sentence plus a cost clause, front-loaded with the action and result, with no filler. Every element (header list, grade range, output items, price) earns its place.

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?

For a one-parameter read-only tool with no output schema, the description does the necessary work by summarizing the return contents and disclosing cost. Minor gaps remain around fetch behavior and whether grading follows redirects, but nothing essential to calling it is missing.

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?

There is a single parameter with 100% schema description coverage, so the schema already explains that it accepts a URL or bare domain. The description adds nothing about that parameter, meaning the baseline of 3 applies rather than a higher score.

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: grade a website's HTTP security headers, with concrete examples (HSTS, CSP, X-Frame-Options, Referrer-Policy) and the output shape (A-F grade, missing items, exposed version info). It is naturally distinct from siblings like email_security, but the description never names an alternative or explicitly draws the boundary.

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 only implied: an agent can infer you call this when you want a security posture assessment for a site. There is no statement of prerequisites, when not to use it, or which sibling to pick for related checks such as domain_report or email_security. The cost note is the only operational guidance offered.

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