Skip to main content
Glama

web_get_contents

Read-onlyIdempotent

Read web pages and PDFs as Markdown to extract content, with options to search long pages, page results, or fetch multiple URLs at once.

Instructions

Read web pages as Markdown (links, tables and code blocks kept). PDFs and JS-heavy pages are handled via Tavily Extract or Exa when a key is configured. Use 'find' to get only the parts of a long page that mention something; long pages are paged with 'offset'. Pass 'urls' to read several pages at once. Internal/private network addresses are refused.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "web_get_contents"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoThe full URL (http:// or https://)
findNoReturn only the sections that mention this text (phrase first, then its words), each with its offset — ideal for long pages
urlsNoSeveral URLs read in parallel (max 10); maxChars, offset, find and format apply to each
freshNoBypass the result cache and force a new request
formatNo'markdown' (default, keeps links) or 'text' (links reduced to their text — fewer tokens)markdown
offsetNoCharacter offset to continue a long page from (given at the end of the previous result)
maxCharsNoMax characters returned per page (500–50000, default 8000; with several URLs the default is ~24000 split across them)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.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, openWorld, idempotent and non-destructive behavior, so the baseline is covered. The description adds meaningful behavior beyond that: Markdown conversion preserves links/tables/code, internal and private network addresses are refused, long pages are paged, and there is a cache that can be bypassed. It stops short of describing the return envelope or failure behavior for unreachable pages.

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?

Five short, front-loaded sentences with no filler; the primary purpose leads and the parameter hints follow. Slightly dense but every sentence contributes either capability or calling guidance.

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 seven-parameter tool with no required parameters and no output schema, the description covers the essentials: format, paging, batching, caching, PDF handling and network restrictions. The remaining gap is minor, since the schema documents parameters thoroughly and no return structure is promised.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already carries the semantics and a 3 would be baseline. The description adds a bit more by explaining how 'find' selects sections and that paging continues via 'offset', which helps an agent chain calls rather than just filling fields.

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 opens with a specific verb and resource, 'Read web pages as Markdown,' and immediately qualifies the output fidelity (links, tables, code blocks kept). It is clear what the tool returns, though it does not explicitly distinguish itself from siblings like web_crawl or web_extract_tavily beyond mentioning fallback providers for PDFs and JS-heavy pages.

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 guidance is delivered at the parameter level rather than the tool-selection level: it explains when to use 'find', when to page with 'offset', and when to pass 'urls'. The only sibling-adjacent signal is that PDFs and JS-heavy pages go through Tavily Extract or Exa when a key is configured, which is implied routing rather than explicit when-to-use/when-not guidance.

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