Skip to main content
Glama

web_content

Fetch a web page and return its full content as Markdown, rendering JavaScript by default and truncating output to a specified token limit.

Instructions

Get full page content as markdown. Automatically truncates to max_tokens. Use web_outline + web_section for better efficiency.

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

Input Schema

NameRequiredDescriptionDefault
urlYesURL to fetch
render_jsNoRender JavaScript with Playwright
max_tokensNoMaximum tokens to return

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two useful traits: output is markdown and content is automatically truncated at max_tokens. However, it does not say whether truncation is silent or flagged, what happens on fetch failure, or whether JS rendering affects cost/latency, leaving meaningful behavioral gaps for a network-fetch tool.

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, front-loaded with the primary action and return format, followed by the truncation caveat and the efficiency routing hint. 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 simple three-parameter fetch tool with no output schema, the description covers purpose, return format, truncation, and an alternative route. The only notable omission is error/failure behavior, which is minor given the tool's simplicity.

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 url, render_js, and max_tokens are already documented in the schema. The description adds only a little meaning by tying max_tokens to automatic truncation behavior; it adds nothing about render_js trade-offs. Baseline 3 is appropriate.

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?

States a specific verb and resource ('Get full page content') plus the return format ('as markdown'), and explicitly distinguishes itself from web_outline and web_section. An agent can tell what this does and how it differs from the sibling tools without opening any schema.

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?

Names the alternatives (web_outline + web_section) and gives the condition that favors them ('for better efficiency'), which implies this tool is the choice when full page text is actually needed. It stops short of stating explicit when-not conditions such as page size thresholds or cases where full content is required for summarization.

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