Skip to main content
Glama
Browser MCP Server

Browser MCP Server

get_page_html

Retrieve HTML from a browser page, optionally by selector and max length, so you can inspect page content while limiting token use.

Instructions

Get HTML (truncated by default to save tokens).

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

Input Schema

NameRequiredDescriptionDefault
pageIdNo
selectorNo
maxLengthNoMax chars (default: 20000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/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 behavioral burden, and it does disclose one real trait: output is truncated by default to save tokens. It says nothing about read-only safety, what truncated output looks like, or whether the full HTML is ever returned, leaving meaningful gaps for an unannotated tool.

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?

One short sentence with the key caveat (truncation) front-loaded, so nothing is wasted. The brevity is appropriate, though the parenthetical could be expanded slightly to state what the default truncation applies to.

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

Completeness2/5

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

For a three-parameter tool with no annotations, no output schema, and low schema coverage, the description is too thin. It leaves the two undocumented parameters and the relationship to similar page-reading tools unexplained, so an agent cannot be fully confident it is calling the right tool correctly.

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 33%: maxLength is documented in the schema, but pageId and selector are undocumented in both the schema and the description. The description adds no meaning about how selector scoping or pageId targeting works, 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 gives a specific verb and resource ('Get HTML'), so its purpose is immediately clear. However, it does not distinguish itself from close siblings such as get_page_content or get_page_summary, so an agent must infer that this returns raw markup rather than extracted text.

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 guidance and no mention of alternatives, even though get_page_content and get_page_summary are obvious candidates for the same intent. The note about default truncation hints at token-cost tradeoffs but does not tell the agent when that tradeoff should drive tool selection.

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