Skip to main content
Glama

Extract Page Content

extract_page
Read-only

Fetch a public web page and extract its content as either clean, readable markdown (the default) or as structured JSON fields matched against a caller-supplied schema. Use markdown mode to summarize or quote a page's text; use structured mode to pull specific named fields (e.g. price, title, author) out of a page's content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesPublic http(s) URL to extract (required)
modeNoExtraction mode: 'markdown' (default, 2 units) returns cleaned page text as markdown; 'structured' (8 units, requires schema) returns JSON matched to the caller's field schema
schemaNoRequired when mode is 'structured': { properties: { field: { type: 'string'|'number'|'boolean'|'array' } } }, max 24 properties, max 8KB serialized

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false. The description adds context about the two modes and default behavior, but does not disclose additional behavioral traits like rate limits, auth requirements, or failure handling. This is acceptable given the strong annotation coverage.

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?

The description is two sentences, front-loaded with the core function, and adds mode guidance in the second sentence. No wasted words; every sentence earns its place.

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 3-parameter tool with a nested schema, the description explains the two modes and provides concrete examples, which is sufficient for an agent to select and invoke it. It does not cover error handling or exact return format for markdown, but that is not essential for selection.

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%, with each parameter (url, mode, schema) documented. The description adds example fields (price, title, author) and clarifies the two modes, but most parameter meaning is already in the schema. There is modest added value beyond the schema.

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 uses specific verbs like 'Fetch' and 'extract' with a clear resource ('public web page'). It clearly distinguishes two modes (markdown and structured) and the tool's purpose is distinct from sibling rendering/screenshot tools.

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?

The description provides explicit mode selection guidance ('Use markdown mode to summarize or quote...', 'use structured mode to pull specific named fields...'). However, it does not explicitly mention sibling tools or when not to use this tool, so it stops short of full exclusions or alternatives.

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.

TDQS

A4.1/5.0
Disambiguation4/5

Each tool targets a distinct output format (markdown/JSON, OG image, PDF, screenshot), but render_og and screenshot_url both produce images and could be confused without careful reading. Descriptions are clear enough for most cases.

Naming Consistency3/5

Names mix patterns: extract_page uses verb_noun, render_og/render_pdf use render_ prefix, and screenshot_url uses screenshot_ prefix. While readable, the conventions are not fully consistent across the set.

Tool Count5/5

Four tools is a well-scoped count for a rendering API, covering common needs without bloat. Each tool has a clear purpose and earns its place.

Completeness4/5

The set covers web page extraction and HTML/URL rendering to common output formats (PDF, image, OG image). A minor gap is lack of direct HTML-to-text or batch rendering, but core workflows are well covered.

Resources