Skip to main content
Glama

dom.summary

Read-only

Retrieve a structural outline of a page's DOM instead of raw markup, so you can inspect the document hierarchy first and fetch HTML only for the branch that matters.

Instructions

Structural outline of the document rather than its markup. Read this first; pull HTML only for the branch that matters.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dom.summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
selectorNo
max_depthNo
max_nodesNo
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds real value by stating the return is a structural outline rather than markup, but it says nothing about depth/node truncation, defaults for target_id or browser_id (auto-launch of a browser is only disclosed in the schema), or what happens on large documents.

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 short sentences, zero filler, with the key differentiator and the usage ordering both front-loaded.

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?

There is no output schema, so the description must convey the return shape; 'structural outline' is directionally useful but leaves the actual structure unspecified. Combined with three undocumented parameters governing scope and size, an agent can pick this tool but not tune it confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 40%: selector, max_depth, and max_nodes are bare strings/numbers with no descriptions. The description mentions neither scoping by selector nor the depth/node limits that govern truncation, so it fails to compensate for the coverage gap.

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 names the resource (the document) and characterizes the output precisely as a 'structural outline ... rather than its markup,' which separates it from HTML-returning siblings like dom.get_html. It does not use an explicit verb and never names a sibling directly, 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 Guidelines4/5

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

'Read this first' gives explicit ordering guidance, and 'pull HTML only for the branch that matters' tells the agent when to switch to a markup-based alternative. It lacks any when-not-to-use condition (e.g., needing attribute values or text content, which other dom.* tools appear to cover).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools