Skip to main content
Glama

Web read batch: up to 5 URLs to clean Markdown in one call

web_read_batch
Read-onlyIdempotent

Use when an agent has several URLs (search results, citations) and needs them all as Markdown at once. Input: urls (1-5 public URLs separated by spaces), optional max_chars per URL (500-20000), flags=1. Output: JSON results[] in input order, each status ok (markdown, title, finalUrl) or error (code, message). Charged once if at least one page is read. Behavior: duplicates dropped; up to 3 URLs fetched in parallel, each with a 15 s timeout, at most 3 redirects and a 3 MB page cap. A URL that fails (timeout, HTTP error, too many redirects, noai opt-out) comes back as status error with code and httpStatus while the others still return; login walls return whatever the public page shows. Markdown is cut at max_chars per URL (truncated flag). Private or malformed URLs: 400 before payment; all URLs failing: 502, not charged. Use instead: web_read for one URL (up to 60,000 chars); web_read_brief for an English brief of one page; convert_to_markdown for PDF, DOCX or HWP documents; web_search_read for a query without URLs yet. Example: ?urls=https://example.com/ https://example.org/ Price: $0.008 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) via x402.

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": {
      "urls": "<urls>"
    },
    "name": "web_read_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlsYes1-5 public http(s) URLs separated by spaces
flagsNo1 = add rule-based prompt-injection signals per page
max_charsNoMax Markdown characters per URL (default 20000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, yet the description still adds substantial operational detail: duplicates dropped, 3-way parallelism, 15 s timeout, 3 redirect limit, 3 MB cap, partial-failure semantics, login-wall behavior, and billing rules (charged once if any page is read, 400 before payment, 502 not charged). The only shortfall is that 'flags=1' is stated without explaining what the prompt-injection signals look like in the result.

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?

Front-loaded with purpose, then input, output, behavior, alternatives, example and price in a predictable order; telegraphic phrasing keeps it dense without filler. The pricing/payment sentence is the least load-bearing element for tool selection but is short enough not to hurt.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description supplies the return contract (results[] in input order, ok vs error shape, status codes 400/502) plus failure and billing behavior. Nothing an agent needs to invoke and interpret this batch reader is missing.

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 baseline is 3; the description still adds value by stating the 500-20000 range for max_chars (the schema only gives the 20000 default), the space-separated URL convention, and the resulting truncated flag per result. It does not expand on what flags=1 actually emits, so it stops short of a 5.

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?

Opens with a specific use case (several URLs from search results or citations, all as Markdown at once) plus the input/output shape, so the batch-of-reads purpose is unmistakable. It explicitly distinguishes itself from web_read, web_read_brief, convert_to_markdown and web_search_read by name and scope.

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?

Gives an explicit 'Use when' trigger and a dedicated 'Use instead' block routing each alternative case (single URL, English brief, PDF/DOCX/HWP, query-without-URLs) to the right sibling. The 1-5 URL cap makes the boundary condition concrete.

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