Skip to main content
Glama

scan_headers

Read-onlyIdempotent

Scan live HTTP GET responses to audit security headers (CSP, HSTS, X-Frame-Options) and receive present/missing headers, findings, and a 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
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, openWorldHint=true. The description adds important context about header truncation (500 chars default, with option for full value), rate limits, and that CSP can exceed 4 KB on large sites. This provides behavioral detail beyond annotations.

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?

The description is multiple sentences but packs essential information without redundancy. It briefly explains the tool, distinguishes from sibling, states limits, and explains truncation. While slightly longer than minimal, all sentences are valuable.

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 that an output schema exists (mentioned in context signals but not shown), the description covers return format ({headers_present, headers_missing, findings, total_score}) and key behavioral details like truncation and rate limits. For a tool with only 2 parameters and 1 required, this is complete and leaves no obvious gaps.

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% with clear descriptions for both parameters. The description adds value by explaining the domain parameter's purpose and the include parameter's effect (default slim findings vs full raw value), including the use case for inspecting full CSP directives. This exceeds the schema's basic explanations.

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 it performs live HTTP GET and analyzes specific security headers (CSP, HSTS, etc.). It also distinguishes from sibling tool 'check_headers', which validates headers already obtained, making purpose very specific.

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 this tool ('audit live website headers') and when to use alternative ('use check_headers to validate headers you already have'). Also includes usage limits (Free: 30/hr, Pro: 500/hr) which guide agent decision-making.

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