Skip to main content
Glama

Build a batch of stories

build_batch

Submit several pre-decomposed stories in one call and get back one batchId to track, instead of dispatching build_feature N times yourself. Swarm is a Pro plan feature: the maximum batch size depends on the account plan (up to 50; not available on Free or the base pay-as-you-go account); a batch over the limit is refused with BATCH_SIZE_LIMIT_EXCEEDED and the limit. Each item has the same shape as a single build_feature call (storyTitle, acceptanceCriteria, stackType, existingFiles?, skipTestsFor?) plus its own repoUrl (informational only). Call get_batch with the returned batchId to check aggregate progress.

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": {
      "items": "<items>"
    },
    "name": "build_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes1 to 50 stories to dispatch.
webhookUrlNoFires once when every item in the batch reaches a terminal state. Must be supplied together with webhookSecret.
webhookSecretNoHMAC-SHA256 signing secret (16-256 chars) for the aggregate completion webhook. Must be supplied together with webhookUrl.
idempotencyKeyNoA repeat call with the same key returns the original batchId instead of dispatching again.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description adds real behavioral context the annotations do not: plan gating, a concrete failure mode and code (BATCH_SIZE_LIMIT_EXCEEDED) with the limit echoed back, and the fact that repoUrl is informational only. It stops short of saying how per-item failures affect the batch as a whole, so a 4 rather than 5.

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?

Front-loaded with the action and payoff in the first clause, with constraints and follow-up ordered after it. The parenthetical plan and limit detail is dense but each clause carries information; a slight trim of the parenthetical would tighten it further.

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?

No output schema exists, and the description covers the key return value (one batchId) plus how to progress-check it, along with limits and the error code. It does not describe the rest of the response payload or partial-failure semantics, which is the main remaining gap for a batch-dispatch tool with a nested item schema.

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 webhook and idempotency parameters are already documented and repetition would earn nothing. The description does add meaning beyond the schema by mapping items to the build_feature shape and flagging repoUrl as informational only, which changes how an agent should fill it in.

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 ('Submit several pre-decomposed stories in one call') and names the outcome ('get back one batchId'), then explicitly contrasts it with dispatching build_feature N times. An agent can distinguish it from build_feature and stream_batch without opening any schema.

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

Usage Guidelines5/5

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

Gives the selecting condition (several already-decomposed stories at once) and the alternative it replaces (calling build_feature N times), plus the follow-up path ('Call get_batch with the returned batchId to check aggregate progress'). It also states eligibility (Pro plan; not available on Free or base pay-as-you-go), which rules out misuse up front.

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