Skip to main content
Glama

dom-skeleton

List the interactive elements of an HTML page with stable CSS selectors — Reduces an HTML document to the elements an agent can act on: links with href, buttons, inputs (not type=hidden), selects, textareas, [role], [onclick], contenteditable, each with tag, type, role, best-effort accessible name (including label associations) and a CSS selector that matches exactly that element, preferring a stable id, then a data-testid-style attribute, name, aria-label, then a struc

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": {
      "html": "<html>"
    },
    "name": "dom-skeleton"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlYesHTML source.
dedupeNoCollapse elements with identical tag, type, role, name and href. Default true.
maxElementsNoMaximum elements returned. Default 100.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does well on inclusion/exclusion rules (hidden inputs excluded) and on the selector-preference heuristic (stable id, then data-testid-style attribute, name, aria-label, then structural), plus "best-effort accessible name". It says nothing about element ordering, what happens when the document exceeds maxElements (truncation vs error), or how defaults are applied, so behavior on edge cases is undisclosed.

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?

The purpose is front-loaded in the first clause, but the body is one long run-on sentence with a trailing enumeration that truncates mid-word, which leaves a visible incomplete thought. The density is reasonable but the structure and cut-off cost it.

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

Completeness3/5

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

No output schema exists, so the description must explain return values, and it does begin to (each element with tag, type, role, name and selector) — but that clause is truncated. For a tool that reduces an arbitrary 100KB document to a bounded list, missing information about ordering, truncation and selector failure modes leaves real gaps.

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%, so the schema already documents html, dedupe and maxElements including their defaults. The description adds no parameter-level guidance and in fact appears to be cut off mid-sentence ("then a struc"), so it contributes nothing beyond the structured fields.

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: "List the interactive elements of an HTML page with stable CSS selectors", and enumerates what counts as interactive (links, buttons, inputs, selects, textareas, role/onclick/contenteditable). It does not name or distinguish itself from the sibling dom-recipe-match, so it falls 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance, no mention of how it relates to dom-recipe-match or alternate ways to inspect a page, and no prerequisites (e.g. page must be fetched first). Usage is only implied by the phrase "elements an agent can act on".

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