Skip to main content
Glama

IA-QA — 152 QA & Dev Tools for AI Agents

parse_http_headers

Read-onlyIdempotent

Parse a raw HTTP headers block into a structured JSON object. Detects multi-value headers, masks Authorization values, and optionally audits for missing security headers (HSTS, CSP, X-Frame-Options, etc.).

Input Schema

NameRequiredDescriptionDefault
headersYesRaw HTTP headers (one "Name: Value" per line)
analyze_securityNoAudit for missing security headers (default: true)

Output Schema

NameRequiredDescriptionDefault
parsedNo
securityNo
header_countNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "headers": "Content-Type: text/html\nSet-Cookie: a=1\nSet-Cookie: b=2"
      +  }
      +]
  2. Changed1 schema field changed
    • addedOutput schema / properties
      Added value: +{
      +  "header_count": {
      +    "type": "number"
      +  },
      +  "parsed": {
      +    "type": "object"
      +  },
      +  "security": {
      +    "type": "object"
      +  }
      +}
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  4. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish that this is a read-only, idempotent, non-destructive, non-open-world operation. The description adds meaningful behavior beyond annotations: it detects multi-value headers and masks Authorization values, which is important for interpreting output. It does not cover permissions or error behavior, but for this tool the added behavioral context is solid.

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?

Two compact sentences, front-loaded with the core action and followed by the most relevant behavioral details. There is no filler, and each clause adds useful information.

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

Completeness4/5

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

The description is complete enough for a two-parameter parsing tool with a full schema and an output schema. The optional security audit is described with examples of checked headers. The only notable omission is routing guidance relative to similar security-header siblings.

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 both parameters are clearly documented in the schema. The description adds behavior around multi-value headers and security auditing but does not add syntax or constraints for the parameters beyond what the schema already provides. Baseline 3 is appropriate when the schema carries parameter documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: parsing a raw HTTP headers block into structured JSON. It also names notable behaviors (multi-value detection, Authorization masking, optional security-header audit). It does not explicitly differentiate itself from closely related siblings such as security_headers_check or web_security_audit, so it stops short of a 5.

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: it is for raw HTTP header blocks. The description does not state when to choose this over security_headers_check or web_security_audit, nor does it give exclusions or routing guidance. That is adequate but leaves the agent to infer sibling selection.

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.