Skip to main content
Glama

Check security headers

check_site_security
Read-onlyIdempotent

Check a site's transport and headers: the plain-http → https redirect, HSTS, Content-Security-Policy (enforced or report-only, unsafe-inline), clickjacking protection, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, mixed content and security.txt — each pass / improve / fix with how to fix it. Fetches the homepage once as our crawler after robots.txt, plus one request to the http:// address; stores nothing. at most 20 checks an hour per network and 30 an hour per site checked.

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

Input Schema

NameRequiredDescriptionDefault
urlYesThe public page to check (https://…). A bare host means its homepage.

Output Schema

NameRequiredDescriptionDefault
urlNo
hostNo
toolYesThe tool's slug (its page is /tools/<slug>).
factsNoWhat was read, as labelled rows. From the site or a registry: unverified.
scoreNo0–100 over the checks.
checksNoFails first. `fix` is the one action to take; null on a pass.
readAtNoUnix seconds.
sourceNoWhere the facts came from.
listingYesWhether the site is listed on the directory: its page when it is (and claimUrl while nobody has proven they own it), where to list it when not.
toolUrlYesThe same check as a page on the site.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / required
      Previous value: -[
      -  "tool",
      -  "checks",
      -  "toolUrl",
      -  "listing"
      -]New value: +[
      +  "tool",
      +  "toolUrl",
      +  "listing"
      +]
  2. Changed6 schema fields changed
    • changedOutput schema / properties / listing / description
      Previous value: -"Whether the site is listed on the directory: its page when it is, where to list it when not."New value: +"Whether the site is listed on the directory: its page when it is (and claimUrl while nobody has proven they own it), where to list it when not."
    • addedOutput schema / properties / listing / properties / claimUrl
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / listing / properties / claimable
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / listing / properties / name
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / listing / properties / productId
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / listing / properties / slug
      Added value: +{
      +  "type": "string"
      +}
  3. Added

TDQS

A4/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing fetch behavior (one homepage request as our crawler after robots.txt, plus one request to the http:// address), that nothing is stored, and concrete rate limits of 20/hour per network and 30/hour per site. The only gap is that the pass/improve/fix output shape is left to the output schema.

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-loads the scope, then the mechanism, then constraints, with no filler sentences. The final rate-limit clause is a sentence fragment and the check enumeration is dense, but every clause carries operational information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained; the description covers what is checked, how the site is fetched, side effects (nothing stored), and rate limits. An agent has everything needed to decide to call it and to anticipate throttling.

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% and the single 'url' parameter is fully documented there, including the bare-host-means-homepage rule, so the description adds little beyond restating that a site is checked. Baseline 3 applies when the schema already carries parameter meaning.

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?

Names a specific verb and resource ('Check a site's transport and headers') and enumerates exactly which checks are performed: redirect, HSTS, CSP, clickjacking, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, mixed content, security.txt. This clearly separates it from certificate-focused or SEO-focused siblings without needing to name them.

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 implied by the scope statement — you run it against a public page to get a header/transport audit — but there is no explicit when-to-use vs when-not, and no sibling such as check_tls is named as an alternative. The rate limits and fetch behavior imply this is a per-site, on-demand audit rather than a bulk tool, which is useful context but not routing guidance.

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