Skip to main content
Glama

Read a page's HTML

get_page_html
Read-only

Get the HTML of a page shared as HTML, exactly as it was uploaded, so you can make the changes reviewers asked for and publish the result with update_page. Call it before editing when you don't already have the page's code in this conversation. Defaults to the latest version. Pages over about 400 KB come back in parts: call again with the next_offset it gives. For a live website it returns the site's current HTML for reference only, since the site is changed in its own code or builder. PDFs have no HTML.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "page": "<page>"
    },
    "name": "get_page_html"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageYesWhich page: its name, its review link (/v/...) or its manage link.
offsetNoOptional. Where to start, for a big page: the next_offset from the previous call. Default 0.
versionNoOptional. The version to read, as shown by list_versions. Default: the latest.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, non-destructive, openWorld), but the description goes further by disclosing pagination behavior for pages over ~400 KB via next_offset, the default of returning the latest version, and that live-site reads are informational rather than a path to editing. These are behaviors an agent could not infer from the schema or annotations.

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?

Front-loads the core action, then layers the edit workflow, pagination, live-site caveat, and PDF exclusion as short discrete sentences. No sentence repeats the name, the title, or the schema, and nothing could be dropped without losing a decision-relevant fact.

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

Completeness5/5

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

For a read tool with no output schema, the description still explains what comes back (the exact uploaded HTML), in what shape when large (parts with next_offset), and what it cannot return (live-site editing, PDFs). Nothing an agent needs to call this correctly is missing.

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 100%, so the schema alone would justify a 3. The description adds context the schema lacks: the size threshold that makes offset relevant and the fact that the correct value comes from the previous call's next_offset, tying offset to a concrete workflow rather than an abstract integer.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Get the HTML of a page shared as HTML, exactly as it was uploaded") and immediately distinguishes this read tool from the write path ("publish the result with update_page"). It also carves out the live-website case as reference-only, so an agent can tell exactly which variant of page it is dealing with.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives an explicit trigger ("Call it before editing when you don't already have the page's code in this conversation") plus exclusions: live sites are read for reference only and cannot be edited through this path, and PDFs have no HTML. The pairing with update_page as the follow-up action makes the workflow unambiguous.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources