Skip to main content
Glama

audit_security_headers

Read-onlyIdempotent

Audit HTTP security headers for a URL to detect missing HSTS, CSP, X-Frame-Options, and mixed content, returning per-header status and an overall security score.

Instructions

Audit HTTP security headers for a URL. Checks HSTS, Content-Security-Policy, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, and detects mixed content (HTTP resources on HTTPS pages). Returns per-header status and an overall security score.

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

Input Schema

NameRequiredDescriptionDefault
urlYesThe fully-qualified URL to audit.
checkMixedContentNoWhen true, scan the HTML for HTTP resources loaded on HTTPS pages.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/open-world, but the description adds genuine value by disclosing the return shape ('per-header status and an overall security score') and the HTTPS-only nature of the mixed-content scan. It does not cover failure modes such as unreachable URLs, redirect handling, or rate limits.

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?

Three short sentences, front-loaded with purpose then scope then return value, with no redundant or filler text.

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?

With only two well-documented parameters and no output schema, the description does enough by sketching the result. It falls slightly short on network/error behavior, which matters for an open-world fetch of an arbitrary URL.

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 100% and both parameters are self-documented, so the schema carries the load; the description only adds the semantic point that mixed content means HTTP resources on HTTPS pages. Baseline 3 applies.

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 and resource ('Audit HTTP security headers for a URL') and enumerates exactly which headers are checked plus the mixed-content check, so the agent can tell this apart from the SEO-oriented siblings like audit_accessibility or analyze_page.

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?

The context for use is implied by the purpose (a per-URL security check), but there is no explicit guidance on when to prefer it over related audits, no prerequisites, and no notes on when not to use it.

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