Skip to main content
Glama

edge_get_html

Retrieve raw HTML of the current document or a specific element selector, capping returned characters to prevent token overflow.

Instructions

Retrieve raw HTML of the current document or a specific element selector.

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": "edge_get_html"
  }
}

Input Schema

NameRequiredDescriptionDefault
selectorNoOptional element selector (if omitted, returns full page HTML)
maxLengthNoMaximum characters to return to avoid token overflow (default: 25000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. "Raw HTML" usefully signals a potentially large, unstructured payload, but the description says nothing about whether a page must already be launched/navigated to, whether the result is serialized markup or a live node representation, or what happens when the selector matches nothing.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though its brevity leaves it doing less work than a tool without annotations arguably needs.

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?

For a two-parameter, non-destructive read tool with fully described parameters and no output schema, the description covers the essential what and scope. The main residual gaps are return-type framing and the precondition that a page context exists, which are minor but non-trivial for a zero-annotation tool.

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%, so both selector and maxLength are already documented with their defaults in the schema itself. The description merely restates the selector behavior and adds no syntax examples, matching rules, or interaction with maxLength, so the baseline 3 applies.

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 a concrete verb ("retrieve raw HTML") and the resource, plus a scope variant ("current document or a specific element selector"). An agent can tell this is an HTML-extraction tool rather than a semantic snapshot or script evaluation, though it never distinguishes itself from the sibling edge_get_accessibility_snapshot explicitly.

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 phrase "current document or a specific element selector" implies how to scope the call, but there is no explicit when-to-use or when-not guidance and no named alternative for cases where a lighter DOM representation would be preferable. Usage is inferable rather than stated.

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