Skip to main content
Glama

dom_html

Retrieve HTML markup for an element or full document, returning complete source or redacted attributes, script, style, and comment content when Secret Layer is enabled.

Instructions

The markup of one element or of the document. With the Secret Layer on, only a short list of attributes shows its value, and typed values and the bodies of scripts, styles and comments come back as [withheld]; with it off, the markup comes back whole.

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_html"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.1

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It usefully discloses that Secret Layer redaction withholds attributes, typed values, and script/style/comment bodies, but it omits target selection behavior, error cases, and whether the operation is read-only.

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?

The description is short, front-loaded, and every clause adds useful meaning about scope or Secret Layer behavior. There is little to trim without losing relevant context.

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?

For a zero-parameter tool with no output schema, the description covers the resource and the important redaction behavior. However, it leaves ambiguity about how an element is selected versus the whole document and does not describe the returned structure beyond whether values are withheld.

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?

The tool has zero parameters, so there is no per-parameter meaning to add. The baseline for a parameterless schema is 4, and the description does not introduce conflicting parameter expectations.

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 states a specific resource: the markup of one element or of the document. It is clear what is returned, though it does not use a verb and does not distinguish itself from sibling extraction or inspection tools.

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 guidance on when to use this tool versus alternatives, nor any when-not-to-use conditions. The only behavioral context is about the Secret Layer, not task selection.

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