Skip to main content
Glama

web_headings

Read-only

Page heading outline + audit — Fetch a public web page and return its h1-h6 heading outline (level, text, id and anchor link) as JSON and as an indented markdown outline, plus counts per level and the page title. Audits the structure for SEO and accessibility: missing or multiple h1, first heading not h1, skipped levels (h2 to h4), empty, overly long and duplicate headings, giving a 0-100 score and A-F grade. Scripts and styles are ignored. Optional limit= (default 200, max 500). Price: $0.003 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": {
      "url": "<url>"
    },
    "name": "web_headings"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYese.g. https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/Heading_Elements

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint and destructiveHint, so the description earns credit for adding genuinely new behavior: scripts and styles are ignored, a 0-100 score and A-F grade are computed, and the call costs $0.003 USDC via x402 on Base. The paid-access requirement is a significant operational detail an agent needs before invoking.

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 definition is front-loaded with the output contract before the audit rules, then closes with operational facts (ignored elements, limit, price). It is dense but every clause carries information; the only minor inefficiency is the long run-on enumeration of audit rules.

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 no output schema, the description carries the return-shape burden and does so well: JSON plus markdown outline, per-level counts, page title, score and grade. It also discloses cost and the limit bound. The only gap is the missing explicit routing versus sibling audit tools.

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 coverage is 100% for the single required url parameter, so the baseline is 3. The description adds only that the page must be public and cites 'limit= (default 200, max 500)', which is helpful context but does not appear in the declared input schema, so it adds limited reliable meaning beyond the schema.

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 opens with a specific verb and resource ('Fetch a public web page and return its h1-h6 heading outline') and enumerates the exact payload: level, text, id, anchor link, per-level counts, page title, and an audit score. It is clearly distinct from sibling tools such as web_markdown or web_meta, which target different page artifacts.

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?

The scope is implied by 'Fetch a public web page', which tells the agent this only works on publicly reachable URLs, but there is no explicit when-to-use/when-not guidance or named alternative among the many web_* siblings. The agent must infer that this is the SEO/accessibility heading-specific tool rather than a general extraction tool.

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