Skip to main content
Glama

Get rendered page HTML

get_page_html
Read-only

Fetch the fully rendered HTML of any WordPress URL to verify front-end changes, and extract SEO head tags or visible text.

Instructions

Fetch the fully rendered HTML that a visitor receives for any URL on the site, so you can verify that a change actually appears on the front end rather than trusting the API's word for it. Returns the server-rendered HTML — content injected later by JavaScript will not appear. Optionally extracts just the SEO-relevant head tags or the visible text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoPath or full URL to fetch, e.g. "/about/"./
modeNohtml: the raw markup. text: visible text only. head: title/meta/OG tags. summary: head tags plus headings, links and image alt coverage.summary
site_idNoWhich configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids.
max_charsNoTruncate the response at this many characters.
preview_tokenNoToken from get_preview_url, to render a draft theme instead of the live one.
Behavior4/5

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

Annotations already assert readOnly=true and destructiveHint=false. The description adds the valuable behavioral detail that only server-rendered HTML is returned (JS-injected content absent), which goes beyond annotation coverage. No contradiction.

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?

Two sentences with zero fluff, front-loaded with the purpose and motivation. The caveat and optional modes are packed efficiently, though there is a slight repetition of 'HTML' but not a problem.

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?

Adequate for a read-only fetch tool: purpose, output type, and the crucial JS limitation are covered. Parameters like max_chars, site_id, and preview_token are documented in schema, so no critical gap for an agent to invoke correctly.

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 covers all 5 parameters with descriptions, so baseline is 3. The tool description adds a high-level summary of extraction modes but no new syntax or mechanics beyond what the schema already provides.

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 specific verb 'Fetch' and resource 'fully rendered HTML for any URL on the site', with a clear motivation to verify front-end changes. It contrasts with 'trusting the API's word', which distinguishes it from content APIs without naming them.

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

Usage Guidelines4/5

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

Provides clear context on when to use (verifying changes on the front end) and a key caveat about JavaScript-injected content. Does not explicitly name alternative tools or when-not situations, but the guidance is sufficient for a read-only fetch.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alokemajumder/wpxmcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server