Skip to main content
Glama

Leer cabeceras HTTP

http-headers-parse
Read-onlyIdempotent

Convierte un bloque de encabezados HTTP crudos en un objeto con nombres en minúscula. Cuándo: hay que leer, construir o revisar con exactitud una URL, una cabecera HTTP, un token, una versión, un rango de IP, un documento HTML o Markdown o un archivo para agentes. No para: convertir entre fecha HTTP (http-date). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Parses a raw HTTP header block (optionally starting with a request or status line) into an object with lowercase names; repeated headers become arrays (Set-Cookie always an array). When: a URL, HTTP header, token, version string, IP range, HTML or Markdown document or agent-readiness file has to be parsed, built or checked exactly. Not for: converting between HTTP-date (http-date). [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
rawYesRaw headers (string; required).

Output Schema

NameRequiredDescriptionDefault
headersNo
start_lineNo
invalid_linesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / raw / examples
      Added value: +[
      +  "Host: x.co\nbad line"
      +]
  2. Changed1 schema field changed
    • addedInput schema / description
      Added value: +"EN: Parses a raw HTTP header block (optionally starting with a request or status line) into an object with lowercase names; repeated headers become arrays (Set-Cookie always an array). When: a URL, HTTP header, token, version string, IP range, HTML or Markdown document or agent-readiness file has to be parsed, built or checked exactly. Not for: converting between HTTP-date (http-date). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB."
  3. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint=false, idempotentHint and destructiveHint=false, so the safety profile is covered; the description still adds real value with determinism ("la misma entrada da la misma salida") and hard limits (1 s per call, 1 MB result). One weakness: it claims a 64 KB input limit while the schema sets raw maxLength to 262144 (256 KB), an inconsistency that could mislead on large inputs.

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?

Front-loading is good: purpose first, then when/not-for/effects/limits. However the body is duplicated in Spanish and English and then explicitly points to inputSchema.description for the "full EN" version, so the same content appears three times, and the generic "Cuándo" list pads rather than informs.

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 an output schema present, the description needn't explain return values, and it does cover purpose, exclusions, determinism, side effects and resource limits. What it lacks is routing guidance among the sibling header parsers and a consistent statement of the input size limit.

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?

There is a single parameter and schema description coverage is 100%, so the baseline is 3. The description does add format semantics beyond the schema (optionally starting with a request or status line, repeated headers becoming arrays), but that same text is duplicated verbatim in inputSchema.description, so the marginal gain over structured data is small.

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?

States a specific verb and resource (converts a raw HTTP header block into an object with lowercase names) and even specifies the output shape: repeated headers become arrays, Set-Cookie always an array. It does not, however, differentiate itself from the many adjacent parsers in the sibling list (cookie-parse, set-cookie-parse, content-type-parse, cache-control-parse, link-header-parse), so an agent still has to infer which header parser applies.

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?

One explicit exclusion is given ("No para: convertir entre fecha HTTP (http-date)"), which is genuinely useful. But the positive "Cuándo" clause is boilerplate that lists nearly every artifact type in the suite (URL, token, versión, rango de IP, HTML, Markdown, archivo para agentes) and therefore does not discriminate between this tool and its many sibling parse tools.

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