Skip to main content
Glama

get_page_text

Scrape a URL using ScrapingBee and return the page content in Markdown or Text format.

Scope: one URL per call, with the result returned into the conversation. For many URLs, a whole site, output written to a file or directory, resumable jobs, or a scheduled re-run, use the ScrapingBee CLI instead — scrapingbee scrape --input-file urls.txt --output-dir results, scrapingbee crawl URL --save-pattern ..., scrapingbee schedule --every. This server has no batch, crawl, file-output or scheduling equivalent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL of the page to scrape.
waitNoMilliseconds to wait after page load (0–35000).
deviceNodesktop (default) or mobile.desktop
cookiesNoSemicolon-separated cookies to send to the target.
timeoutNoRequest timeout in milliseconds (1000–140000, default 140000).
ai_queryNoNatural-language question for AI extraction.
max_costNoOptional credit ceiling for auto_mode (integer >= 1). The request will not escalate to a configuration costing more than this many credits. 0 means no ceiling. Ignored unless auto_mode is True.
wait_forNoCSS or XPath selector to wait for before returning.
auto_modeNoOn by default — ScrapingBee automatically picks the cheapest configuration that successfully fetches the page, escalating proxy strength only as needed (you are charged only for the winning config). To choose a configuration yourself instead, use one of: auto_mode=False for the classic tier (no proxy, cheapest), premium_proxy=True, or stealth_proxy=True — the two proxy flags override auto_mode on their own, so auto_mode=False is only needed for the classic tier. Setting render_js also switches to manual.
render_jsNoWhether to use headless-browser rendering. Omit to use the API default (true). Setting this explicitly switches the request to manual configuration (disables auto_mode).
session_idNoInteger 0–10000000 to reuse an IP for up to 5 minutes.
ai_selectorNoCSS selector to focus AI extraction on part of the page.
js_scenarioNoStringified JSON object of browser interaction instructions.
country_codeNoISO 3166-1 alpha-2 country code (e.g. "fr", "us") to route the request through an IP in that country. Only takes effect when premium_proxy or stealth_proxy is True.
wait_browserNodomcontentloaded (default), load, networkidle0, networkidle2.domcontentloaded
window_widthNoViewport width (default 1920).
custom_googleNoSet to True if the url is a google domain in the following format: <subdomain>.google.<top-level-domain> (Example: translate.google.com, mail.google.com, www.google.co.in etc)
premium_proxyNoManual option: use a premium proxy (middle tier of classic/premium/stealth). Setting this disables auto_mode.
stealth_proxyNoManual option: use a stealth proxy (strongest tier of classic/premium/stealth). Setting this disables auto_mode.
window_heightNoViewport height (default 1080).
block_resourcesNoBlock images/CSS to speed up rendering.
return_page_textNoWhether to return the page content in Text format.
return_page_markdownNoWhether to return the page content in Markdown format.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningful work: it declares the one-URL-per-call scope, states the result is returned into the conversation, and explicitly disclaims batch, crawl, file-output and scheduling capability. It still says nothing about auth requirements, credit cost, or error behavior that an agent invoking a paid scraper would want.

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?

Purpose and scope are front-loaded in two tight sentences, then the boundary cases. The inline CLI command examples are slightly verbose but each illustrates a distinct unsupported capability, so they largely earn their space.

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 23-parameter tool with a fully documented schema and an output schema, the remaining burden is scope and capability boundaries, which the description covers well. What is missing is the relationship to sibling scraping tools, the main ambiguity an agent faces here.

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% across all 23 parameters, so the schema already documents wait, cookies, auto_mode, proxies, and return format in detail. The description only reiterates the Markdown/Text output distinction and adds no syntax or format meaning beyond structured data, so baseline 3 applies.

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 ("Scrape a URL using ScrapingBee") plus the return format (Markdown or Text), which implicitly distinguishes it from the raw-HTML sibling. However, it never names get_page_html or extract_page_data, so the agent must infer differentiation itself.

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?

Gives a clear when-not-this-tool: many URLs, whole sites, file output, resumable jobs, scheduled re-runs, each with the exact CLI alternative and command. It stops short of routing between sibling MCP tools (get_page_html vs extract_page_data vs this one), which is the more likely agent decision.

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