Skip to main content
Glama

Get page contents

get_page_contents
Read-onlyIdempotent

Fetch a public web page live and return its main content as clean Markdown, plain text or HTML. Use this when you have a specific URL and need its current content. Works best on articles, docs, product and listing pages. Pages that need JavaScript are rendered in a real browser automatically when the fast fetch is not enough (charged at the rendered rate). Does not log in or submit forms.

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_contents"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe public URL to fetch (http or https, at most 8,192 characters).
formatNoOutput format. Prefer markdown.markdown
countryNoFetch the page as seen from this country, e.g. 'de', 'gb', 'us'.us
verbosityNo'compact' = main content only, 'full' = whole page body.compact
max_charactersNoMaximum characters of content to return (default 8000, smaller than the REST API's 100000 to save context). Raise it when the content is cut.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/idempotent annotations, it discloses meaningful behavior: JavaScript pages are rendered in a real browser automatically as a fallback, this fallback is 'charged at the rendered rate' (a cost signal an agent should know before calling), and the tool cannot authenticate or submit forms. These are exactly the operational traits annotations cannot express.

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?

Four sentences, no filler, and the core capability is front-loaded ahead of fit guidance, cost behavior and limits. Every sentence carries distinct information the caller needs.

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?

There is no output schema, yet the description tells the agent what comes back (main content as markdown/text/html) and how completeness is controlled. Combined with 100% parameter coverage, the cost note and the explicit no-auth/no-form boundary, nothing essential to correct invocation is missing.

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 description coverage is 100%, so all five parameters (url, format, country, verbosity, max_characters) are already documented, including enum meanings and the 8000/100000 limit rationale. The description adds only the output-format list already implied by the schema, so the baseline of 3 applies.

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?

The description opens with a specific verb and resource: 'Fetch a public web page live and return its main content as clean Markdown, plain text or HTML.' It also scopes the tool ('public', 'live') which distinguishes it from any cached or authenticated retrieval, and no sibling (get_account_status) overlaps with it.

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?

It states the selecting condition clearly ('when you have a specific URL and need its current content') and gives positive fit guidance ('articles, docs, product and listing pages'), plus exclusions ('Does not log in or submit forms'). It stops short of naming an alternative tool for login-gated content, but the only sibling is unrelated, so no real ambiguity remains.

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