Skip to main content
Glama

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.

Input Schema

TableJSON 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?

With no annotations, the description carries the behavioral burden and does well: it discloses Pro-plan gating, an upper bound (up to 50), unavailability on Free/base pay-as-you-go, and the exact refusal signal (BATCH_SIZE_LIMIT_EXCEEDED with the limit). It does not describe partial-failure semantics within a batch or per-item error behavior, which is the remaining gap.

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 dense sentences that are front-loaded with the batching purpose before dropping into plan limits and the follow-up call. Everything earns its place, though the plan/limit clause is information-heavy for a single sentence.

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, so the description appropriately explains the return value (one batchId) and how to consume it (get_batch for aggregate progress); webhook pairing constraints are handled in the schema. What is missing is what happens when some items in a batch fail while others succeed.

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 baseline is 3; the description adds real meaning beyond the schema by stating each item mirrors a build_feature call (storyTitle, acceptanceCriteria, stackType, existingFiles?, skipTestsFor?) plus repoUrl, and that repoUrl is 'informational only' — the schema leaves repoUrl completely undescribed.

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?

Specific verb+resource with explicit scope: 'Submit several pre-decomposed stories in one call and get back one batchId to track.' It directly contrasts itself with the sibling build_feature ('instead of dispatching build_feature N times yourself'), so an agent can distinguish the two without opening either 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?

Names the alternative (build_feature called N times) and the condition that selects this tool (multiple pre-decomposed stories in one dispatch). It also states the plan prerequisite, the failure mode when exceeded, and the follow-up tool (get_batch with the returned batchId).

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