Skip to main content
Glama

Security Headers Audit

security_headers_audit
Read-onlyIdempotent

Fetch a URL and audit its response headers in one pass: security headers (HSTS, CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy) with a score, PLUS its CORS policy (the probe sends a foreign Origin header and flags wildcard-origin + credentials combinations and arbitrary-origin reflection). Header-level checks on a single response — for server/TLS-level checks use ssl_cert_check or ssl_labs_grade instead.

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
urlYesThe URL to audit

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/idempotent/non-destructive, but the description adds non-obvious behavior: the probe actively sends a foreign Origin header, which matters because the fetch is not a passive GET and may appear in target logs. It also discloses the specific CORS anti-patterns flagged (wildcard-origin + credentials, arbitrary-origin reflection) and that headers are scored, though it omits redirect handling, timeouts, and 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.

Conciseness4/5

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

Front-loaded with the core action, then structured into header checks and CORS behavior, closing with the sibling routing clause. It is dense and mostly earns its length, though the CORS parenthetical is somewhat heavy for a single clause.

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 no output schema, the description carries the return-value burden and does so partially by naming the scored headers and the CORS flags. For a single-parameter read tool this is nearly sufficient; only the response structure (per-header pass/fail vs. aggregate) and any failure modes remain 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 the single 'url' parameter is already documented and the description adds only the mild implication that it must be a live, fetchable URL rather than a cached reference. No syntax, scheme, or path detail is added beyond the schema, so the 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 pair (fetch + audit) against a specific resource (response headers) and enumerates the exact header classes checked, plus the parallel CORS analysis. An agent can distinguish this from ssl_cert_check, ssl_labs_grade, or a general SEO/page audit without opening any sibling schema.

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

Usage Guidelines5/5

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

Explicitly scopes the tool to 'header-level checks on a single response' and names the alternatives (ssl_cert_check, ssl_labs_grade) with the condition that selects them (server/TLS-level checks). The when-not guidance is attached to the right boundary rather than left implicit.

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.