Skip to main content
Glama

get_page_html

Read-only

Retrieve the HTML source of the current browser page, or navigate to a URL first. Use it to read page markup for parsing, scraping, or debugging.

Instructions

Get the HTML of the current page (or navigate to url first), inside the untrusted-content fence.

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
urlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, and the description adds two pieces of context beyond them: that output is wrapped in an untrusted-content fence (relevant for prompt-injection handling) and that supplying `url` triggers a navigation side effect before reading. It does not mention size limits or how much of the document is captured.

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?

One compact sentence with the primary action front-loaded and the optional branch parenthesized so it never obscures the default behavior. No filler.

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 one-parameter read tool with no output schema, the definition covers the core action, the optional navigation, and the fenced return framing. Gaps remain around output size/truncation and whether the HTML reflects dynamic post-load state.

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?

Schema coverage is 0% for the single `url` parameter, so the description must carry the meaning — and it does, explaining that `url` causes navigation before the read rather than being a filter. It stops short of stating the expected URL format or whether relative paths are accepted.

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?

Specific verb (get) plus resource (HTML of the current page), with an explicit optional navigate-first branch. It implicitly separates itself from extraction-style siblings like read_page or page_elements by returning raw HTML, though it never names an alternative to disambiguate.

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 parenthetical '(or navigate to `url` first)' tells the agent one usage pattern, but there is no guidance on when to prefer this over read_page, page_elements, or evaluate_js, nor any prerequisites such as requiring an open tab.

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