Skip to main content
Glama

oassis — web scraping, crawling and browser control for AI agents

web_scrape_batch

Read-only

A batch OF SCRAPES: reads a list of urls YOU give it (2 to 50, from any sites) and returns a jobId. It discovers nothing on its own — for that use web_crawl. API key and credits required. Poll it with web_batch_status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jsonNoFor the `json` format: a `prompt` describing what to pull out, a JSON `schema` to fill, or both.
urlsYesThe pages of this batch. Two to fifty, no duplicates: a batch charges per url.
waitNoWhen to consider the page loaded: `until` (load, domcontentloaded, networkidle0, networkidle2), `selector` to wait for, `timeout` in ms.
blockNoWhat not to load, which makes a render faster and cheaper. `resourceTypes` takes image, font, stylesheet, media… and `urlPatterns` are regular expressions, not globs: `\.svg$`, not `*.svg`.
linksNoOptions for the `links` format: `visibleOnly`, `excludeExternal` to keep only internal links.
maxAgeNoAccept an answer up to this many milliseconds old. A cache hit costs $0.0002 instead of the format price. Leave it out to force a fresh render.
formatsNoOutputs you want in the same response. `controls` is the map of what can be clicked; `elements` needs `selectors`; `json` needs `json.prompt` or `json.schema`. A screenshot or a PDF is not available here: every result is kept until you collect it. Ask for those one url at a time on web_scrape.
requestNoHow to make the request: `headers`, `cookies`, `userAgent`, and `auth` for basic authentication.
binaryAsNoHow a screenshot or a PDF comes back. `base64` is the only value today.base64
controlsNoOptions for the `controls` format: `visibleOnly`, and `limit` (1 to 1000) to cut the map.
viewportNoThe window to render in: `width`, `height`, `deviceScaleFactor`.
selectorsNoCSS selectors for the `elements` format.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / binaryAs / enum
      Previous value: -[
      -  "base64",
      -  "url"
      -]New value: +[
      +  "base64"
      +]
    • removedInput schema / properties / json / properties / model
      Removed value: -{
      -  "minLength": 1,
      -  "type": "string"
      -}
  2. Changed29 schema fields changed
    • addedInput schema / properties / binaryAs
      Added value: +{
      +  "default": "base64",
      +  "description": "How a screenshot or a PDF comes back. `base64` is the only value today.",
      +  "enum": [
      +    "base64",
      +    "url"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / block
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "What not to load, which makes a render faster and cheaper. `resourceTypes` takes image, font, stylesheet, media… and `urlPatterns` are regular expressions, not globs: `\\.svg$`, not `*.svg`.",
      +  "properties": {
      +    "resourceTypes": {
      +      "items": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "urlPatterns": {
      +      "items": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / controls
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Options for the `controls` format: `visibleOnly`, and `limit` (1 to 1000) to cut the map.",
      +  "properties": {
      +    "limit": {
      +      "maximum": 1000,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    "visibleOnly": {
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedInput schema / properties / formats / description
      Previous value: -"Outputs you want in the same response. `controls` is the map of what can be clicked; `elements` needs `selectors`; `json` needs `json.prompt`."New value: +"Outputs you want in the same response. `controls` is the map of what can be clicked; `elements` needs `selectors`; `json` needs `json.prompt` or `json.schema`. A screenshot or a PDF is not available here: every result is kept until you collect it. Ask for those one url at a time on web_scrape."
    • changedInput schema / properties / formats / items / enum
      Previous value: -[
      -  "html",
      -  "markdown",
      -  "links",
      -  "screenshot",
      -  "pdf",
      -  "elements",
      -  "json",
      -  "accessibility",
      -  "controls"
      -]New value: +[
      +  "html",
      +  "markdown",
      +  "links",
      +  "elements",
      +  "json",
      +  "accessibility",
      +  "controls"
      +]
    • addedInput schema / properties / json / additionalProperties
      Added value: +false
    • changedInput schema / properties / json / description
      Previous value: -"For the `json` format: `prompt` and/or `schema`."New value: +"For the `json` format: a `prompt` describing what to pull out, a JSON `schema` to fill, or both."
    • addedInput schema / properties / json / properties / model
      Added value: +{
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / json / properties / prompt / minLength
      Added value: +1
    • addedInput schema / properties / json / properties / schema / additionalProperties
      Added value: +{}
    • addedInput schema / properties / links
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Options for the `links` format: `visibleOnly`, `excludeExternal` to keep only internal links.",
      +  "properties": {
      +    "excludeExternal": {
      +      "type": "boolean"
      +    },
      +    "visibleOnly": {
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / maxAge / maximum
      Added value: +604800000
    • addedInput schema / properties / maxAge / minimum
      Added value: +0
    • changedInput schema / properties / maxAge / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / request
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "How to make the request: `headers`, `cookies`, `userAgent`, and `auth` for basic authentication.",
      +  "properties": {
      +    "auth": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "password": {
      +          "type": "string"
      +        },
      +        "username": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "username",
      +        "password"
      +      ],
      +      "type": "object"
      +    },
      +    "cookies": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "domain": {
      +            "type": "string"
      +          },
      +          "httpOnly": {
      +            "type": "boolean"
      +          },
      +          "name": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "path": {
      +            "type": "string"
      +          },
      +          "secure": {
      +            "type": "boolean"
      +          },
      +          "value": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "value"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "headers": {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "userAgent": {
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedInput schema / properties / selectors / description
      Previous value: -"CSS selectors for `elements`."New value: +"CSS selectors for the `elements` format."
    • addedInput schema / properties / selectors / items / minLength
      Added value: +1
    • addedInput schema / properties / selectors / minItems
      Added value: +1
    • changedInput schema / properties / urls / description
      Previous value: -"The urls to read, 2 to 50. They do not have to share a site."New value: +"The pages of this batch. Two to fifty, no duplicates: a batch charges per url."
    • addedInput schema / properties / urls / items / format
      Added value: +"uri"
    • addedInput schema / properties / urls / maxItems
      Added value: +50
    • addedInput schema / properties / urls / minItems
      Added value: +2
    • addedInput schema / properties / viewport
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "The window to render in: `width`, `height`, `deviceScaleFactor`.",
      +  "properties": {
      +    "deviceScaleFactor": {
      +      "maximum": 3,
      +      "minimum": 0.1,
      +      "type": "number"
      +    },
      +    "height": {
      +      "maximum": 4096,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    "width": {
      +      "maximum": 4096,
      +      "minimum": 1,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "width",
      +    "height"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / wait / additionalProperties
      Added value: +false
    • changedInput schema / properties / wait / description
      Previous value: -"When to consider the page loaded: `until`, `selector`, `timeout`."New value: +"When to consider the page loaded: `until` (load, domcontentloaded, networkidle0, networkidle2), `selector` to wait for, `timeout` in ms."
    • addedInput schema / properties / wait / properties / selector / minLength
      Added value: +1
    • addedInput schema / properties / wait / properties / timeout / maximum
      Added value: +60000
    • addedInput schema / properties / wait / properties / timeout / minimum
      Added value: +100
    • changedInput schema / properties / wait / properties / timeout / type
      Previous value: -"number"New value: +"integer"
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, idempotentHint=false, and destructiveHint=false. The description adds useful operational context: it returns a jobId, requires API key and credits, and must be polled via web_batch_status. It does not restate schema-level billing details, but the key behavior is covered.

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?

The description is four short sentences and is front-loaded with the core definition. Each sentence adds a distinct piece of information: batch semantics, no autonomous discovery, auth/billing requirements, and polling.

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 complex 12-parameter asynchronous batch tool, the description covers the essential call contract: caller-supplied URLs, jobId return, credit requirement, and polling. The remaining parameter detail is handled by the rich schema, though the description could say more about result collection if output were not otherwise described.

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 parameter meanings are already well documented in the schema. The description reinforces that URLs are caller-supplied and must be 2 to 50, but it adds no syntax or format details beyond the structured fields, so 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?

The description gives a specific verb and resource: it reads a list of URLs supplied by the caller and returns a jobId. It also distinguishes this from web_crawl by saying it discovers nothing on its own, so an agent can identify the tool without opening the 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?

It clearly states the batch-scrape use case and redirects discovery tasks to web_crawl, and it tells the agent to poll with web_batch_status. It does not explicitly compare against web_scrape for single-URL scrapes, so the guidance is strong but not exhaustive.

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