Skip to main content
Glama
alterlab-mcp-server

alterlab-mcp-server

Get Batch Status

alterlab_batch_status
Read-onlyIdempotent

Poll the status of a submitted batch and retrieve scraped results when completed, including per-URL content and failure details.

Instructions

Poll the status and results of a submitted batch. Call this after alterlab_batch to check progress and retrieve scraped content. Status values: processing, completed, failed, partially_failed. When completed, results contains the content for each URL.

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": {
      "batch_id": "<batch_id>"
    },
    "name": "alterlab_batch_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
batch_idYesBatch ID returned by alterlab_batch

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations (readOnly, idempotent, openWorld, non-destructive, which already establish this as a safe repeatable read), the description enumerates the status lifecycle (processing, completed, failed, partially_failed) and states where results appear. It does not mention polling cadence, whether results expire, or whether partial failures return partial content.

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?

Four short sentences, front-loaded with the action, then the sequencing rule, then the status vocabulary, then the return behavior. Every sentence carries distinct information and nothing is repeated from the schema or annotations.

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 one-parameter polling tool with no output schema, the description covers when to call it, what status values to expect, and what results contains on completion. Remaining gaps (polling interval guidance, results retention, distinguishing from non-batch status siblings) are modest but real.

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% and the single batch_id parameter is already documented in the schema as 'Batch ID returned by alterlab_batch'. The description corroborates that provenance but adds no syntax, format, or validation detail beyond it, so the baseline of 3 applies.

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?

States a specific verb and resource ('poll the status and results of a submitted batch') and ties the resource to the producing tool ('a submitted batch', alterlab_batch). This cleanly separates it from sibling listing tools and from status tools for other job types such as alterlab_crawl_status.

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?

Gives an explicit sequencing rule: call this after alterlab_batch to check progress. What is missing is the negative case – nothing tells the agent to use alterlab_crawl_status or alterlab_get_job instead when the job is not a batch, so the agent must infer the routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.