Skip to main content
Glama

Wait for a build to finish processing

wait_for_build
Read-only

Polls App Store Connect until a specified uploaded build finishes processing and appears as VALID, preventing ship flows from checking manually or using an older listed build.

Instructions

Poll until an uploaded build finishes processing (VALID), so the ship flow is one call. Pass build_number (the CFBundleVersion upload_binary names) right after an upload: Apple lists a new upload only after a few minutes, so the newest listed build can be an older one. Blocks for up to 30 minutes by default; if you should not hold the session that long, call list_builds yourself instead. Pro feature.

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": {
      "app_id": "<app_id>"
    },
    "name": "wait_for_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYesApp Store Connect app ID
build_numberNoThe build's CFBundleVersion, e.g. "2". Waits for that build to be listed and processed. Omit to take the newest listed build.
poll_secondsNoSeconds between polls (default 30, min 10)
max_wait_secondsNoMax seconds to wait (default 1800, cap 3600)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.12.1
    • addedInput schema / properties / build_number
      Added value: +{
      +  "description": "The build's CFBundleVersion, e.g. \"2\". Waits for that build to be listed and processed. Omit to take the newest listed build.",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.6/5.0
Behavior4/5

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

The readOnlyHint annotation already covers safety. The description adds important behavior beyond annotations: polling, the default 30-minute block, the Apple listing-lag caveat, the fallback to list_builds, and that it is a Pro feature. It does not describe timeout behavior or the exact return value, leaving a small gap.

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 front-loaded with the core action and then adds only decision-relevant details: build_number rationale, blocking limit, fallback, and Pro status. Every sentence earns its place.

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?

Given a four-parameter polling tool with no output schema, the description covers purpose, usage timing, blocking behavior, listing-lag rationale, and a fallback. It is nearly complete, though it could say what happens when max_wait_seconds expires.

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 schema already documents all four parameters. The description still adds meaningful semantic context for build_number by tying it to CFBundleVersion from upload_binary and explaining why passing it matters immediately after upload.

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 states a specific verb and resource: poll until an uploaded build finishes processing to VALID. It also frames the tool's role in the ship flow and clearly contrasts it with manually calling list_builds.

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?

It gives explicit usage guidance: call right after an upload, pass build_number because Apple's listing lag can make the newest listed build an older one. It also names the alternative when the caller cannot hold the session for the default blocking period: use list_builds yourself.

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