Skip to main content
Glama

Read one batch

get_batch
Read-onlyIdempotent

Where a batch got to: whether it is still running, how many of its URLs now have a verdict, how many of those the web or our policy refused, how many were never attempted, and what it has spent so far. Ask for items to get the results themselves: the pages and the refusals, in the order you submitted them, each one the same answer a single scrape would have given. You get up to 200 at a time, from wherever from says. A batch whose results have expired still answers with everything else, because somebody who paid for those pages must never be told the batch does not exist.

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": {
      "id": "<id>"
    },
    "name": "get_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe batch's id, as create returned it.
fromNoStart the results at this position. Up to 200 come back at a time, so read the next page with `from` plus however many you just got, and stop when you reach `total`.
itemsNoAlso return the results themselves, in the order you submitted them. Off by default: most polls only want to know whether the batch has finished.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the read-only, idempotent, non-destructive safety profile, yet the description still adds real behavior: a 200-item page cap, cursor-style paging via `from`, and the important edge case that a batch with expired results still returns all metadata rather than an error. It does not state rate limits or auth requirements, but for a read tool the added context is substantial.

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?

The description is front-loaded with the core answer (where the batch got to) before moving to the optional items payload and the paging limit. The closing rationale about expired results is longer than needed and mildly editorial, but it does carry a genuine behavioral guarantee.

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 carries the return-value burden and does so: it enumerates the counters, explains the shape and ordering of `items`, and covers the expired-results case. An agent can call this correctly without further documentation.

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 coverage is 100%, so `id`, `from`, and `items` are already documented in the schema, including the 200-per-page advance rule. The description largely restates that page size and the meaning of `from` rather than adding syntax or edge-case detail beyond the schema, 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 opening sentence states precisely what the tool returns — batch progress, verdict counts, refusals, unattempted URLs, and spend — and the second sentence distinguishes the optional `items` payload as 'the same answer a single `scrape` would have given,' which separates it from the sibling scrape tool and from the create/cancel/quote batch tools.

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?

Usage is implied rather than stated: the phrasing 'Where a batch got to' and the note that most polls only want to know whether the batch has finished frame it as a polling tool, and 'Ask for `items`' guides the optional payload. But there is no explicit when-to-use versus when-not, and no routing to siblings such as list_batches for finding ids or cancel_batch for stopping a run.

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