appstore_prepare_version
Create or edit the App Store version being prepared: its number, build, release type, phased release, copyright and what App Review needs.
Creates or edits the version being prepared for the App Store: its version number, the build it ships, how it is released (by hand, right after approval, or on a date, optionally phased over 7 days), its copyright line, and what App Review needs (a contact, a demo account, notes). Only the inputs sent change.
When no version is being prepared, it starts one, and versionString is required. When one is, a different versionString renumbers it. It does not touch the listing text or screenshots (see appstore_update_store_listing and appstore_upload_screenshots) and does not submit (see appstore_submit_for_review).
| Read-only | Destructive | Idempotent |
|---|---|---|
| No | No | Yes |
Inputs
| Input | Type | Required | Default | What it does |
|---|---|---|---|---|
teamId |
string (UUID) | yes | — | The Team, from list_teams. |
projectId |
string (UUID) | this or appId |
— | The Project whose app this is, from list_projects: the usual way to name an app. The app is the one on App Store Connect with the bundle id the Project builds. When both are sent, projectId is used. |
appId |
string | this or projectId |
— | An App Store Connect app id from appstore_list_apps, for an app no Project builds. |
appleTeamId |
string (UUID) | no | every connected Apple team | One of the Team’s Apple teams, from appstore_list_apple_teams. With appId, only this Apple team is searched for the app. With projectId it is not needed: the Project’s app decides. |
platform |
string: IOS, MAC_OS, TV_OS, VISION_OS |
no | IOS |
Which platform’s App Store version. |
versionString |
string | to start a version | — | The version number, e.g. 1.2.0. |
buildId |
string | no | — | Attach this build, from appstore_list_builds. |
buildNumber |
string | no | — | Attach the newest unexpired build with this build number, e.g. 42. |
useLatestBuild |
boolean | no | — | Attach the newest unexpired build of this version’s number. |
release |
string: manual, afterApproval, scheduled |
no | — | How the version is released once approved. scheduled needs scheduledDate. |
scheduledDate |
string (ISO 8601 date-time) | with scheduled |
— | The earliest release time, e.g. 2026-11-01T09:00:00Z. |
phasedRelease |
boolean | no | — | true rolls the update out over 7 days to people with automatic updates; false turns that off. |
copyright |
string | no | — | e.g. 2026 Example Inc. |
reviewContact |
object: firstName, lastName, phone, email (strings) |
no | — | App Review’s contact person. Only the fields sent change. |
demoAccount |
object name, password (both required), or null |
no | — | A sign-in App Review can use; null when the app needs none. |
reviewNotes |
string, at most 4,000 characters | no | — | Notes for App Review. |
The checks every tool makes on its inputs are on Server and sign-in.
Result
A JSON object, as text and as structuredContent.
| Field | What |
|---|---|
version |
The version after the changes (fields below) |
review |
What App Review gets, or null when nothing is set: contact (firstName, lastName, phone, email), demoAccount (name, and password shown only as "(set)"; null when no demo account is needed) and notes |
The version’s fields:
| Field | What |
|---|---|
versionId |
Apple’s id of the version |
version |
The version number, e.g. 1.2.0 |
state |
Apple’s state of the version, e.g. PREPARE_FOR_SUBMISSION, WAITING_FOR_REVIEW, IN_REVIEW, PENDING_DEVELOPER_RELEASE, READY_FOR_SALE, REJECTED |
releaseType |
MANUAL, AFTER_APPROVAL or SCHEDULED, or null |
scheduledRelease |
The earliest release date of a scheduled release, or null |
copyright |
The copyright line, or null |
build |
The attached build, buildId and buildNumber, or null |
phasedRelease |
The phased release, state (INACTIVE, ACTIVE, PAUSED, COMPLETE) and day (its day of 7), or null |
createdAt |
When the version was created |
{
"version": {
"versionId": "00000000-0000-0000-0000-000000000000",
"version": "1.2.0",
"state": "PREPARE_FOR_SUBMISSION",
"releaseType": "AFTER_APPROVAL",
"scheduledRelease": null,
"copyright": "2026 Example Inc.",
"build": {
"buildId": "00000000-0000-0000-0000-000000000000",
"buildNumber": "42"
},
"phasedRelease": null,
"createdAt": "2026-11-18T09:00:00Z"
},
"review": {
"contact": {
"firstName": "Alex",
"lastName": "Doe",
"phone": "+1 555 0100",
"email": "review@example.com"
},
"demoAccount": null,
"notes": "Notes"
}
}Errors
Each comes back as a tool error (isError: true). Italic words stand for the values in the sentence. The errors every tool can return are on Server and sign-in.
| Message | When | What to do |
|---|---|---|
| No version is being prepared: pass versionString to start one, e.g. 1.2.0. | No version can be changed and versionString was not sent |
Send versionString |
| App Store Connect did not create the version. | Apple answered without the new version | Read the state with appstore_app_status, then try again |
| release must be manual, afterApproval or scheduled. | Another release value |
Send one of the three |
| scheduledDate is required. | release: "scheduled" without scheduledDate |
Send scheduledDate |
| Build number is state: only a processed build can be attached. | The build is still processing, or failed | Wait for processing to finish (appstore_list_builds), or choose another build |
| No build number of version version on App Store Connect. See appstore_list_builds. | No build of this version has that buildNumber |
Check appstore_list_builds |
| No build of version version has reached App Store Connect yet. ask in the Project’s channel (send_message) for a TestFlight build. | useLatestBuild and no build of that version number exists |
Ask the Project’s Agent for a build with send_message |
| No such build. | buildId names no build |
Take a buildId from appstore_list_builds |
| No build number on App Store Connect. See appstore_list_builds. | No unexpired build has that buildNumber |
Check appstore_list_builds |
| No build of this app has reached App Store Connect yet. Uploading one is the Team’s Agents’ work: ask in the Project’s channel (send_message) for a TestFlight build. | The app has no unexpired build at all | Ask the Project’s Agent for a TestFlight build with send_message |
| Pass projectId, or appId from appstore_list_apps. | Neither projectId nor appId was sent |
Send one of them |
| This Project has not been built for iOS yet, so it has no bundle id to find its app by. Ask the Team’s Agent to build it, or pass appId. | The Project has never been built for iOS | Ask the Project’s Agent for an iOS build (send_message), or name the app by appId |
| This Project has no app on App Store Connect yet. Create one with appstore_create_app (its bundle id is the Project’s), or pass appId. | No app on the Team’s connected Apple teams has the Project’s bundle id, or no Apple team is connected | Create the app with appstore_create_app, or name another app by appId |
| No connected Apple team of this Team has that app. See appstore_list_apps. | appId is not an app of any connected Apple team (or of appleTeamId) |
Take the id from appstore_list_apps |
| platform must be IOS, MAC_OS, TV_OS or VISION_OS. | Another platform value |
Send one of the four |
| App Store Connect: Apple’s sentence | Apple refused the request. Up to five of Apple’s own sentences follow, each with the field it is about in brackets when Apple names one. An Apple agreement waiting in App Store Connect is refused this way too | Act on Apple’s words. Agreements are accepted by the Apple Developer account’s Account Holder in App Store Connect (Business › Agreements) |
| App Store Connect answered status. Try again in a moment. | Apple refused without saying why | Try again in a moment |
Example
{
"name": "appstore_prepare_version",
"arguments": {
"teamId": "00000000-0000-0000-0000-000000000000",
"projectId": "00000000-0000-0000-0000-000000000000",
"versionString": "1.2.0",
"useLatestBuild": true,
"release": "afterApproval",
"reviewContact": {
"firstName": "Alex",
"lastName": "Doe",
"phone": "+1 555 0100",
"email": "review@example.com"
},
"demoAccount": null
}
}