Skip to main content
Glama

web_contents

Read any web page as clean LLM-ready markdown for $0.003 — the natural companion to /web/search. Send a URL, get back the readable core: title, headings, paragraphs, lists and links, stripped of scripts, styles, navigation and other boilerplate. Choose markdown or plain text and cap the size with max_chars (default 20000; a truncated flag tells you when the cut hit). Unreachable or non-HTML targets cost nothing. Pay per call in USDC, no account, no API key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe http(s) URL of the page to read. Literal IP addresses, localhost and non-http(s) schemes are rejected.
formatNomarkdown (default) keeps #-headings, [text](url) links and - lists; text is flat plain textmarkdown
max_charsNoMaximum content length in characters (1000-100000, default 20000); longer pages are cut and flagged truncated

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and delivers: it discloses pricing, boilerplate stripping, format options, max_chars truncation with a truncated flag, and zero cost for failures. It also explains the payment model (USDC, no account, no API key). This goes well beyond basic call semantics.

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 four dense sentences, front-loaded with the core purpose and cost, followed by output details, then edge-case pricing. Every sentence adds distinct operational or behavioral information, with no filler or redundancy.

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 tool with no output schema and no annotations, the description covers the important operational details: output content type, format selection, size cap and truncation flag, and failure pricing. The only minor gap is that it does not specify the exact JSON response envelope or error shape, but an agent still has enough to invoke it correctly.

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 the baseline is 3. The description mostly restates schema details (e.g., max_chars default and truncation flag) without adding new meaning. It does not explain URL constraints such as http(s) requirement or IP rejection, which are already in the schema. Thus no increase above baseline is warranted.

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 states a specific verb ('Read'), a clear resource ('any web page'), and a concrete output ('clean LLM-ready markdown'). It also positions the tool as 'the natural companion to /web/search', which helps distinguish it from query-based siblings. This is far more specific than a tautology.

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 explicitly frames when to use the tool: after a web search, to read a specific URL's readable core. It also provides useful guidance by noting that unreachable or non-HTML targets cost nothing, encouraging attempts. However, it does not name sibling alternatives like web_crawl or web_search_read, nor does it state when not to use them.

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.

Resources