Skip to main content
Glama

AgentAPIGate — Real-Time Google SERP, News & Web Search API

Extract Webpage or PDF as Markdown

extract_webpage_markdown
Read-onlyIdempotent

Fetch a public HTTP/HTTPS webpage or PDF document and extract its main readable content as clean structured Markdown with title, word count, and outbound links.

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": "extract_webpage_markdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic http:// or https:// webpage or PDF URL to extract into readable Markdown
include_linksNoWhether to include extracted outbound links from the document

Output Schema

NameRequiredDescriptionDefault
dataYes
metaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavior: it hits the external network, strips the page down to 'main readable content', and produces title, word count and outbound links. It stops short of disclosing failure modes (paywalls, JS-rendered pages, non-HTML responses) or size/time limits.

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?

A single sentence that front-loads the action, scope and output format with no filler. Every clause carries information.

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 an output schema present and rich annotations, the description needn't explain return values, and it correctly stays brief. What is missing is any hint about what happens on unfetchable or non-public URLs, which matters for an open-world fetch tool.

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%, so both parameters are already documented, which sets the baseline at 3. The description only echoes that outbound links are part of the output and reinforces the 'public' constraint on url; it adds no syntax, format, or interaction detail beyond the schema.

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?

The description pairs a specific verb (extract) with a concrete resource (public HTTP/HTTPS webpage or PDF) and names the output form (structured Markdown). It distinguishes itself from search-style siblings by being URL-driven, though it never explicitly contrasts with search_web.

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 is implied rather than stated: 'public http:// or https://... URL' signals you must already have a URL and that authenticated/non-public pages are out of scope. There is no explicit when-to-use versus when-not, and no named alternative such as search_web for discovery.

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.