Skip to main content
Glama

Nightshift Labs: link, token & signature pre-checks

web_security_headers

Read-only

Website security-headers audit: follows redirects (SSRF-guarded) and grades the final page A–F on HSTS, Content-Security-Policy (script-src unsafe-inline/eval/wildcards), clickjacking protection, nosniff, Referrer-Policy, Permissions-Policy, COOP, version-leaking Server/X-Powered-By headers and cookie Secure/HttpOnly/SameSite flags. Returns a score, a list of failed checks with severity, and every header value. Price: $0.003 USDC on Base per call (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": {
      "url": "<url>"
    },
    "name": "web_security_headers"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYeshttp(s) URL of a public site

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint, but the description adds substantial beyond-schema behavior: redirects are followed, SSRF protection is applied, output is an A–F grade with a score plus failed checks with severity plus all header values, and there is a per-call price of $0.003 USDC on Base via x402. The payment and SSRF-guard disclosures are operationally critical and are not available anywhere else.

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?

A single front-loaded sentence that leads with the verb and resource, then pays out the check list, return shape, and price in order of usefulness. It is dense with parentheticals but nearly every clause carries information an agent needs; the only mild cost is the long comma-chained enumeration.

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?

There is no output schema, so the description correctly compensates by describing the return payload (score, failed checks with severity, all header values). Combined with the redirect/SSRF behavior, the grading scale, and the payment terms, nothing an agent needs to invoke this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With one parameter at 100% schema coverage, the schema already defines 'url' as an http(s) URL of a public site. The description adds meaningful context about that input: the tool follows redirects itself and is SSRF-guarded, so the caller does not need to pre-resolve the final destination, only supply a public URL.

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 ('Website security-headers audit') and then enumerates exactly what is graded (HSTS, CSP with unsafe-inline/eval/wildcards, clickjacking, nosniff, Referrer-Policy, Permissions-Policy, COOP, version-leaking headers, cookie flags). This is clearly distinct from siblings like domain_ssl (TLS) or web_link_check (link health).

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 audit framing, but there is no explicit when-to-use versus when-not, and no routing to or away from siblings such as domain_ssl or web_extract. An agent can infer the context but must decide on its own whether a header audit is the right call versus an SSL or page-extraction tool.

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.