Skip to main content
Glama

util_http_headers

Read-only

HTTP header parser and smuggling check — Parse a raw HTTP header block (headers=, one 'Name: value' per line, newlines as %0A; optional status or request line first) into structured fields: Content-Type params, Cache-Control directives with cacheability, every Set-Cookie with attributes, prefix rules and SameSite/Secure/HttpOnly flags, Content-Disposition incl. RFC 5987 filename*, Link (rel/params), Accept* lists sorted by q, HSTS with preload eligibility, Retry-After, HTTP dates to ISO, ETags (weak/strong), WWW-Authenticate challenges, Authorization scheme (credentials redacted; Basic username only), Forwarded/X-Forwarded-For, Server-Timing, Alt-Svc, Range/Content-Range, CSP directives, Permissions-Policy, rate-limit headers and more. Flags request-smuggling and protocol problems: Content-Length + Transfer-Encoding together, duplicate or non-numeric Content-Length, chunked not last, whitespace before the colon, obsolete line folding, invalid names, control characters, missing Host, duplicate singleton headers, CORS * with credentials. Verdict OK/WARNINGS/SUSPICIOUS. Max 65536 chars, 300 headers. Offline, no data stored. Price: $0.002 USDC (Base, via 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": {
      "headers": "<headers>"
    },
    "name": "util_http_headers"
  }
}

Input Schema

NameRequiredDescriptionDefault
headersYesHTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 Cache-Control: public, max-age=3600, stale-while-revalidate=60 Strict-Transport-Security: max-age=63072000; includeSubDomains; preload Set-Cookie: sid=abc123; Path=/; Secure; HttpOnly; SameSite=Lax

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing hard limits (65536 chars, 300 headers), the three-level verdict (OK/WARNINGS/SUSPICIOUS), credential redaction behavior, offline/no-storage processing and a per-call price of $0.002 USDC via x402. These are operational facts an agent cannot get from readOnlyHint/destructiveHint. Minor tension exists between 'Offline' and openWorldHint=true, but that hint concerns external-entity scope rather than a safety claim, so it does not rise to a contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and the closing sentences (verdict, limits, cost) are efficient. The middle, however, is one very long run-on sentence enumerating roughly thirty header types, which is dense but earns partial credit because that enumeration drives capability discovery for a parse-and-report tool.

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?

With a single required string parameter and no output schema, the description carries the return-value burden and does so by listing parsed field groups and the verdict scale. It stops short of describing error behavior (e.g., whether a malformed block returns SUSPICIOUS or a hard failure) or representative response shape, which keeps it from a 5.

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% and the schema already shows a worked example, so the baseline is 3; the description still adds real meaning by specifying the %0A newline encoding rule, the one-header-per-line grammar, and the optional status/request line prefix, plus size caps. It does not clarify escaping or behavior when both CRLF and %0A appear, leaving a small gap.

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?

Opens with a specific verb+resource pair ('Parse a raw HTTP header block') and adds a second distinct function ('smuggling check'), then bounds the scope by enumerating exactly which header families it understands. An agent can distinguish this from siblings like security_headers or util_http_status without opening a schema.

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?

Guidance on *how* to supply input is explicit ('headers=, one Name: value per line, newlines as %0A; optional status or request line first'), which is genuine usage direction. However, there is no explicit when-to-use/when-not statement and no named alternative for adjacent tasks such as scoring response-header security, so selection against siblings is left to inference.

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