Skip to main content
Glama

security_headers_generate

Read-only

Security headers generator — Generate a hardened HTTP security-header set (HSTS, Content-Security-Policy, X-Content-Type-Options, X-Frame-Options, Referrer-Policy, Permissions-Policy, COOP/CORP, optional COEP) tailored to type=app|spa|static|api and your third-party origins (scripts=, styles=, images=, fonts=, connect=, frames=, media=), with ready-to-paste configs for nginx, Apache, Caddy, Cloudflare/Netlify _headers, vercel.json, Express and IIS web.config (format=). Options: framing=deny|self|, inline_styles=1, preload=1, allow=camera,geolocation..., popups=1, isolate=1, report_uri=. Rejects unsafe source tokens. Pair with /v1/security/headers to grade the live site. Price: $0.003 USDC (Base, via x402).

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": {
      "type": "<type>"
    },
    "name": "security_headers_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesapp

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so safety is covered. The description adds useful behavior beyond that: it rejects unsafe source tokens, emits ready-to-paste configs for multiple servers/CDNs, and discloses a $0.003 USDC x402 cost. It does not describe response shape, though no output schema exists.

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

Conciseness3/5

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

The purpose is front-loaded, but the bulk is a dense run-on sentence with long parenthetical lists of headers, origin categories, and config formats. It repeats the title at the start ("Security headers generator — Generate...") and could be broken into a short summary plus structured option notes.

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 complex generator with only one declared parameter and no output schema, the description does well to cover intended types, output config formats, and safety validation. But it describes many parameters that the schema does not accept, leaving the agent unsure how to invoke the documented options, so completeness is undermined by schema-description mismatch.

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?

The only schema parameter is type with the unhelpful description "app"; the description supplies its intended values (app|spa|static|api) and enumerates many options like format=, framing=, inline_styles=, and report_uri=. However, those options are absent from the schema, so the added semantics cannot be reliably acted on and create ambiguity about what can actually be passed.

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?

The description states a specific verb (Generate) and resource (hardened HTTP security-header set), lists the header families covered, and distinguishes itself from the sibling security_headers by positioning that tool as the live-site grader. An agent can identify what this tool produces without opening the schema.

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

Usage Guidelines4/5

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

It gives clear context for use: tailor headers to type=app|spa|static|api and third-party origins, then pair with /v1/security/headers to grade the live site. It does not explicitly state when not to use it, but the generate-vs-grade split is clear.

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.

Resources