Skip to main content
Glama

Commoncrawl Fetch Record

commoncrawl_fetch_record
Read-onlyIdempotent

Read one archived page back out of Common Crawl by byte range, pass the filename, offset and length from a commoncrawl_index_search result and get the WARC headers, the captured HTTP response headers, and the page body as it was crawled. AUTHORITATIVE for "what did this page actually say when it was crawled", including pages that have since changed or gone offline. The body is truncated to a byte cap you control. Keyless.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "length": 1225,
      "offset": 38994004,
      "filename": "crawl-data/CC-MAIN-2025-05/segments/1736703361969.6/warc/CC-MAIN-20250112194358-20250112224358-00433.warc.gz"
    },
    "name": "commoncrawl_fetch_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
lengthYesCompressed byte length of the record (the capture row's "length"). Max 10485760 (10 MB).
offsetYesByte offset of the record within that WARC file (the capture row's "offset").
filenameYesWARC path from a capture row, e.g. "crawl-data/CC-MAIN-2025-05/segments/1736703361969.6/warc/CC-MAIN-20250112194358-20250112224358-00433.warc.gz".
max_body_bytesNoTruncate the decoded page body to this many bytes before returning it. Default 20000, max 200000. WARC headers and HTTP headers are always returned in full.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, open-world), yet the description adds real behavior: it is keyless (no auth), the body is truncated to a caller-controlled byte cap while WARC and HTTP headers are always returned in full. That truncation/return-shape detail is exactly the kind of context annotations cannot express; only rate limits and failure modes are left unstated.

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 sentences, front-loaded with the action, then the authoritative-use case, then the truncation caveat. Nothing is repeated from the schema verbatim and no sentence is filler.

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?

There is no output schema, but the description compensates by naming the response's three components and the truncation rule. For a four-parameter read tool that is nearly complete; it only omits what happens on an invalid byte range or oversized length.

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 would be 3, but the description adds framing the schema does not: the three inputs form a byte range that must originate from a capture row of an index-search result, and the body cap is caller-controlled rather than fixed. The 'headers always returned in full' note reinforces the max_body_bytes boundary.

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 verb and resource ('Read one archived page back out of Common Crawl by byte range') and enumerates exactly what comes back: WARC headers, captured HTTP response headers, and the page body as crawled. That distinguishes it cleanly from the index-search sibling, which is named as the source of the inputs.

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?

It states the required upstream workflow — obtain filename/offset/length from a commoncrawl_index_search result — and frames the tool's niche ('AUTHORITATIVE for what did this page actually say when it was crawled'). No explicit when-not-to-use or exclusion versus archive_compare/archive_evidence is given, so it stops short of a 5.

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.