Skip to main content
Glama

scan_headers

Read-onlyIdempotent

Perform live HTTP GET to audit website security headers: CSP, HSTS, X-Frame-Options, etc. Returns present/missing headers, findings, and total score.

Instructions

Perform live HTTP GET and analyze security headers: CSP, HSTS, X-Frame-Options, X-Content-Type-Options, Permissions-Policy, Referrer-Policy. Use to audit live website headers; use check_headers to validate headers you already have. Free: 30/hr, Pro: 500/hr. By default header values are truncated to 500 chars (CSP can exceed 4 KB on large sites); pass include='full' for the full raw value. Returns {headers_present, headers_missing, findings, total_score}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesDomain to scan live HTTP headers for (e.g. 'example.com', 'api.github.com')
includeNoDetail level. Default ('') returns slim findings — raw header values capped at 500 chars with total_value_length carrying the honest pre-truncation length. Pass 'full' to restore the full raw value (useful for inspecting full CSP directives on sites like GitHub where the CSP header exceeds 4 KB). Allowed: '' or 'full'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Annotations already declare read-only, non-destructive, idempotent, open-world. Description adds critical behavioral details: default truncation to 500 chars with total_value_length for pre-truncation length, option to pass 'full' for raw values, and mentions CSP can exceed 4 KB. Also describes return object structure.

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?

Description is four sentences, each serving a distinct purpose: purpose, usage guidance, truncation behavior, and return format. No fluff or redundancy. Front-loaded with key 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?

Given the domain of HTTP security header analysis and presence of output schema, the description covers purpose, parameters, behavioral nuances, rate limits, and return structure. It is sufficiently complete for an agent to correctly invoke and interpret results.

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?

Schema coverage is 100% so baseline is high. However, description adds valuable semantics for the 'include' parameter, explaining the default behavior (truncation) and when to use 'full' (e.g., large CSP directives). Domain parameter is straightforward but context is adequate.

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 clearly states the tool performs live HTTP GET to analyze specific security headers (CSP, HSTS, etc.) and explicitly contrasts with sibling tool check_headers. This provides precise verb and resource identification.

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 states when to use (audit live website headers) and when to use alternative check_headers (validate headers you already have). Also includes rate limit information (30/hr free, 500/hr Pro), giving practical usage context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/UPinar/contrastapi'

If you have feedback or need assistance with the MCP directory API, please join our Discord server