Skip to main content
Glama
web-basics-mcp

web-basics-mcp

by yoloyash

fetch_url

Read-onlyIdempotent

Retrieves a public HTTP(S) URL and returns clean Markdown for pages, Reddit, X, and YouTube transcripts, extracted PDF text, or supported images; use start_index to continue truncated text.

Instructions

Fetch one public HTTP(S) URL. Returns clean Markdown for pages, Reddit posts, X posts, and YouTube video transcripts, extracted PDF text, direct text data, or a supported image. Use start_index to continue truncated text.

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

Input Schema

NameRequiredDescriptionDefault
urlYesTarget URL
max_lengthNoMaximum text characters to return
start_indexNoCharacter index to start text content from

Output Schema

NameRequiredDescriptionDefault
urlYes
linksNo
titleNo
contentNo
metadataNo
extractorYes
pageCountNo
truncatedNo
wordCountNo
byteLengthNo
contentTypeYes
start_indexNo
total_charsNo
returned_charsNo
fallback_reasonNo
next_start_indexNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.0
    • changedOutput schema / properties / extractor / enum
      Previous value: -[
      -  "defuddle",
      -  "readability",
      -  "unpdf",
      -  "reddit",
      -  "text",
      -  "image"
      -]New value: +[
      +  "defuddle",
      +  "readability",
      +  "unpdf",
      +  "reddit",
      +  "x",
      +  "youtube",
      +  "text",
      +  "image"
      +]
  2. Changed3 schema fields changedv0.5.0
    • addedInput schema / properties / max_length
      Added value: +{
      +  "default": 8000,
      +  "description": "Maximum text characters to return",
      +  "maximum": 20000,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / start_index
      Added value: +{
      +  "default": 0,
      +  "description": "Character index to start text content from",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "byteLength": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "content": {
      +      "type": "string"
      +    },
      +    "contentType": {
      +      "type": "string"
      +    },
      +    "extractor": {
      +      "enum": [
      +        "defuddle",
      +        "readability",
      +        "unpdf",
      +        "reddit",
      +        "text",
      +        "image"
      +      ],
      +      "type": "string"
      +    },
      +    "fallback_reason": {
      +      "type": "string"
      +    },
      +    "links": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "metadata": {
      +      "additionalProperties": {
      +        "type": [
      +          "string",
      +          "number",
      +          "boolean",
      +          "null"
      +        ]
      +      },
      +      "type": "object"
      +    },
      +    "next_start_index": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "pageCount": {
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    "returned_chars": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "start_index": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "title": {
      +      "type": "string"
      +    },
      +    "total_chars": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "truncated": {
      +      "type": "boolean"
      +    },
      +    "url": {
      +      "type": "string"
      +    },
      +    "wordCount": {
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "url",
      +    "contentType",
      +    "extractor"
      +  ],
      +  "type": "object"
      +}
  3. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so safety is covered. The description adds real behavioral value by naming the extraction formats per source, revealing that output may be truncated, and pointing at the paging mechanism — details not derivable from the annotations.

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?

Three short sentences, zero filler, with the core action front-loaded and the supported formats and continuation hint following in priority order. Nothing repeats the schema or annotations.

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 full parameter documentation, the description covers what is returned and how to continue truncated output. It stops short of error behavior for inaccessible or blocked URLs and rate-limit expectations, which would matter for an openWorld 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 description coverage is 100%, so url, max_length and start_index are already documented, making 3 the baseline. The description adds only a little: that start_index exists to resume a truncated response, which clarifies intent but not syntax or interaction with max_length.

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 concrete verb and resource ('Fetch one public HTTP(S) URL') and then enumerates the content shapes handled: Markdown for pages, Reddit, X and YouTube transcripts, PDF text, direct text, and images. An agent can tell this is single-URL retrieval rather than the sibling web_search, though the sibling is never named explicitly.

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?

The only usage instruction is 'Use start_index to continue truncated text', which is a paging hint rather than when-to-use guidance. It never states when to prefer this over web_search, nor when-not to call it (private URLs, unsupported content types).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools