Skip to main content
Glama

Sage Agent x402 Tools

web_extract

Read-only

Fetches a public URL and deterministically converts HTML into clean LLM-ready Markdown alongside OpenGraph/JSON-LD metadata, heading outline, and deduplicated links without LLM summarization. Use when you need raw page text cheaply; use ai_web_research_brief for an AI-synthesized summary or search_web_live when you do not yet have a URL. Read-only, stateless; costs $0.005 Base USDC via x402 (unpaid calls return a v2 quote challenge without charging; invalid inputs return 400 uncharged).

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_extract"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic HTTP or HTTPS web page URL to fetch and extract.
max_charsNoMaximum character length of the returned Markdown output (500-40000, default 12000).
include_linksNoWhether to include the deduplicated list of hyperlinks found on the page (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover read-only, open-world, non-idempotent and non-destructive, and the description still adds material context beyond them: statelessness, the $0.005 Base USDC x402 charge, the non-charging quote challenge on unpaid calls, and 400-without-charge on invalid input. The only gap is that it does not say how truncation at max_chars behaves or whether repeated calls are billed identically.

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?

Three sentences, front-loaded with the core capability before usage routing and then billing/error behavior. Dense but nearly every clause earns its place; the parenthetical payment detail is slightly long but is genuinely decision-relevant.

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?

No output schema exists, so the description does its job by naming the return payload (Markdown, metadata, outline, links) and covering the payment and error paths. For a three-parameter read-only tool this is nearly complete; only truncation/pagination semantics at max_chars are left unstated.

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_chars and include_links are already documented in the schema. The description only glancingly touches parameters, hinting at the deduplicated link list that maps to include_links, and adds no format or interaction detail beyond that. Baseline 3 applies when the schema carries the parameter burden.

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 ('fetches a public URL and deterministically converts HTML into clean LLM-ready Markdown') and enumerates the exact outputs (OpenGraph/JSON-LD metadata, heading outline, deduplicated links), plus a distinguishing negation ('without LLM summarization'). An agent can separate this from ai_web_research_brief on the strength of the description alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use clause ('when you need raw page text cheaply') paired with two named alternatives and the condition that selects each: ai_web_research_brief for synthesized summaries, search_web_live when no URL exists yet. This is the full when/when-not/alternative triad.

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.