Skip to main content
Glama

get_page_content

Retrieve a webpage's readable text, raw HTML, or both for content analysis, with optional CSS selector extraction to target specific page elements.

Instructions

Fetch the text and/or HTML content of a webpage. Returns { url, title, html?, text?, meta }. Use format to choose output: "text" (readable content), "html" (raw HTML), or "both". Optionally pass a CSS selector to extract content from a specific element.

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": {
      "url": "<url>"
    },
    "name": "get_page_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesURL of the page to fetch
formatNoOutput format: "text" for readable content, "html" for raw HTML, "both" for bothtext
selectorNoOptional CSS selector to extract content from a specific element
max_lengthNoMaximum character length per format (default 50000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description carries the full behavioral burden. It does disclose the response envelope ({ url, title, html?, text?, meta }) and how format controls which fields are populated, which is genuine value; however it says nothing about JS-rendered content, authentication, redirects, rate limits, or failure behavior for a fetch 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?

Three front-loaded sentences: purpose, return shape, then option semantics. Little waste, though the format enumeration duplicates what the schema already declares and could have been spent on behavioral caveats instead.

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?

With no output schema, the description usefully documents the return object and its optional fields, and it covers the required url and the selector's extraction role. The gaps are behavioral rather than structural: nothing about dynamic page rendering, error responses, or truncation semantics beyond the max_length schema default.

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% and every parameter including max_length has its own description, so the schema does the heavy lifting. The description's format explanation largely restates the enum semantics already in the schema and adds only the framing that format selects which return fields appear.

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?

States a specific verb and resource ("Fetch the text and/or HTML content of a webpage") plus the exact return shape, so an agent knows precisely what it gets back. It does not explicitly distinguish itself from get_page_structure, which is the nearest ambiguous sibling.

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?

Usage guidance is limited to parameter mechanics: "Use format to choose output" with text/html/both explained, and selector described as optional. There is no statement of when to prefer this tool over structural siblings or when it is inappropriate, so usage is only implied.

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