Skip to main content
Glama

fetch

Fetch URLs and convert content to clean markdown for LLM processing while scanning for prompt injection risks. Returns structured data with metadata, links, and security assessments.

Instructions

Fetch a URL and return clean, LLM-ready markdown with metadata and prompt injection scanning.

Args: url: The URL to fetch. timeout: Request timeout in seconds. max_words: Optional word cap on extracted body content. strict: When True and high-risk injection is detected, the response is marked as an error. js: Use Playwright for JavaScript-rendered pages (requires playwright + chromium). links: Link extraction mode — "domains" (default) or "full" for all URLs with anchor text.

Returns: A structured dict with url, body (markdown), metadata, links, risk_level, injection_matches, sanitization stats, and edge case info.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
timeoutNo
max_wordsNo
strictNo
jsNo
linksNodomains
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Erodenn/fetch-guard'

If you have feedback or need assistance with the MCP directory API, please join our Discord server