Skip to main content
Glama
PageSpeed MCP Server

PageSpeed MCP Server

security_headers_audit

Check a URL's HTTPS status and security headers such as HSTS, CSP, and X-Frame-Options to identify missing protections that can affect security and SEO.

Instructions

Check HTTPS status and security headers (HSTS, CSP, X-Frame-Options, etc.). Important for both security and SEO.

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_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet it says nothing about network behavior (redirect following, timeout, user-agent), rate limits, or what a failed fetch looks like. Only the audit scope (which headers are examined) is disclosed, and even that is left open with "etc."

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?

Two short sentences with the action front-loaded and the value proposition second; no filler. The abbreviation "etc." slightly undercuts precision but costs little space.

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, no-output-schema read tool the description covers what is inspected, but omits what the caller receives (per-header pass/fail, a score, raw headers) and whether failures are reported in-band. Adequate but leaves the agent guessing about result shape.

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?

A single required url parameter with 0% schema description coverage; the description implies the URL is the site being probed but adds no format rules (scheme required? trailing path allowed? subdomains?). Because the tool is single-parameter and the semantics are largely self-evident, this lands at the midpoint rather than lower.

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?

Names a specific verb and resource: "Check HTTPS status and security headers", and enumerates representative headers (HSTS, CSP, X-Frame-Options). It is distinguishable from generic SEO siblings, but never contrasts itself with technical_seo_audit or onpage_seo_audit, which likely also surface header issues.

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?

The only guidance is the vague remark that it is "Important for both security and SEO"; there is no statement of when to prefer this over the sibling audit tools. An agent must guess whether to call this or technical_seo_audit for header checks.

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