Skip to main content
Glama

fetch_resilient

Resilient fetch with automatic fallback. Tries the fast native scraper first, then re-fetches through headless Chromium for client-rendered pages and sites that refuse bare HTTP clients. The response reports which tier served it. Price: $0.008 (70% off when served from cache); an x402 payment is at least $0.004

Input Schema

NameRequiredDescriptionDefault
urlYesThe URL to process
cacheNoServe a cached copy when one exists (cached responses are 70% off)
timeoutNoRequest timeout in milliseconds
waitForNoCSS selector to wait for (Pro tier only)
cacheTtlNoHow long to cache this response, in seconds

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / cache
      Added value: +{
      +  "default": true,
      +  "description": "Serve a cached copy when one exists (cached responses are 70% off)",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / cacheTtl
      Added value: +{
      +  "default": 3600,
      +  "description": "How long to cache this response, in seconds",
      +  "maximum": 86400,
      +  "minimum": 60,
      +  "type": "number"
      +}
    • addedInput schema / properties / timeout / default
      Added value: +10000
    • changedInput schema / properties / timeout / description
      Previous value: -"Timeout in ms (default 10000)"New value: +"Request timeout in milliseconds"
    • addedInput schema / properties / timeout / example
      Added value: +10000
    • changedInput schema / properties / url / description
      Previous value: -"The URL to fetch"New value: +"The URL to process"
    • addedInput schema / properties / url / example
      Added value: +"https://example.com"
    • addedInput schema / properties / url / format
      Added value: +"uri"
    • addedInput schema / properties / waitFor
      Added value: +{
      +  "description": "CSS selector to wait for (Pro tier only)",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the escalation sequence, that the response reports which tier served it, and full cost mechanics ($0.008 base, 70% cache discount, $0.004 x402 payment floor). It stops short of stating auth mechanics, error/retry behavior, or rate limits, but the cost and latency-relevant context is unusually thorough.

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 behavior before the pricing detail. Each sentence carries distinct information (mechanism, fallback trigger, cost). The pricing sentence is dense but not redundant with the schema's cache description.

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 5-param tool with no annotations and no output schema, the description covers what it does, how it escalates, what the response signals, and what it costs. Remaining gaps (error handling, auth flow, response shape beyond the tier field) are minor but real, so it falls short of fully self-sufficient.

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 all five parameters are already documented, including cache pricing and the Pro-tier restriction on waitFor. The description reinforces the cache discount and tiering but adds no syntax or format detail beyond the schema. Baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('resilient fetch') and immediately explains the mechanism: native scraper first, headless Chromium fallback. An agent understands it is a scraping fetch with tiered escalation. It does not explicitly name the siblings it overlaps with (fetch_webpage, fetch_webpage_pro, get_contents), so differentiation is left to inference.

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

Usage Guidelines3/5

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

It describes the conditions that trigger the fallback tier (client-rendered pages, sites refusing bare HTTP clients), which implies when this tool is the right pick. However, it never tells the agent when to choose this over fetch_webpage or fetch_webpage_pro, nor when not to use it. Usage is implied rather than directed.

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.