MCP tools

Read downloads, redownloads, updates, in-app purchases and proceeds from Apple's sales reports for one app or a whole Apple team.

Sums Apple’s sales reports: downloads, redownloads, updates, in-app purchases and proceeds, for one app (projectId or appId) or for every app of an Apple team. It covers the last days (7 by default, ending yesterday) or one calendar month. Apple publishes each day’s report about a day late; days without a report yet are listed in noReportYet. It changes nothing.

Sales reports need Apple’s Paid Applications agreement to be accepted in App Store Connect. When AirBuild has no vendor number for the Apple team yet, the first call asks Apple for it through the Team owner’s Apple sign-in in AirBuild.

This tool can take a while for long periods. It answers as a stream with progress when the client accepts one (see Server and sign-in).

Read-only Destructive Idempotent
Yes No Yes

Inputs

Input Type Required Default What it does
teamId string (UUID) yes — The Team, from list_teams.
projectId string (UUID) no — One app: the Project’s, from list_projects.
appId string no — One app, by its App Store Connect id from appstore_list_apps.
appleTeamId string (UUID) when several Apple teams are connected and no app is named the only connected one The Apple team, from appstore_list_apple_teams. Without an app, its every app is counted.
days integer, 1 to 31 no 7 How many days, ending with endDate.
endDate string, YYYY-MM-DD no yesterday The last day, in Pacific time.
month string, YYYY-MM no — One whole month instead; days and endDate are then ignored.

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
scope The app (appId, name), or the Apple team (appleTeamId, apps: "all")
period from and to dates, or month
totals downloads (first downloads), redownloads, updates, inAppPurchases (units), and proceeds: the developer’s proceeds per currency, as Apple reports them
byDay Days only, not months: date, downloads, inAppPurchases
topCountries The 10 countries with most downloads: country (two-letter code), downloads
products The 20 products with most units, updates left out: sku, title, type (Apple’s product type), units, proceeds per currency. With one app, its in-app purchases are included
noReportYet Only when some reports were not there: the dates (or month) without one
{
  "scope": {
    "appId": "1234567890",
    "name": "Notes"
  },
  "period": {
    "from": "2026-11-12",
    "to": "2026-11-18"
  },
  "totals": {
    "downloads": 120,
    "redownloads": 14,
    "updates": 300,
    "inAppPurchases": 6,
    "proceeds": {
      "USD": 20.94
    }
  },
  "byDay": [
    {
      "date": "2026-11-18",
      "downloads": 18,
      "inAppPurchases": 1
    }
  ],
  "topCountries": [
    {
      "country": "US",
      "downloads": 64
    }
  ],
  "products": [
    {
      "sku": "com.example.notes",
      "title": "Notes",
      "type": "1F",
      "units": 120,
      "proceeds": {}
    }
  ]
}

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
Apple has no sales reports for this team yet: the Paid Applications agreement must be accepted in App Store Connect first. Apple has no vendor number for the Apple team The Account Holder accepts the Paid Applications agreement in App Store Connect
month must look like 2026-09. month is not YYYY-MM Fix the format
endDate must look like 2026-09-30. endDate is not YYYY-MM-DD Fix the format
This Team has no Apple Developer account connected. The Team’s owner connects one in AirBuild (Settings → Apple Developer). The Team owner has connected no Apple Developer account Ask the Team owner to connect one (in the app: Settings › Developer)
None of this Team’s Apple teams is connected yet. The Team’s owner finishes connecting it in AirBuild. The owner’s Apple teams exist but none is switched on and ready Ask the Team owner to finish connecting it
This Team works with several Apple teams; pass appleTeamId: name = id, …. More than one Apple team is connected and appleTeamId was not sent Send appleTeamId, one of the ids the sentence lists
That Apple team is not one of this Team’s. See appstore_list_apple_teams. appleTeamId is not one of the Team’s Apple teams Take it from appstore_list_apple_teams
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
The Team owner’s Apple sign-in has lapsed and only they can renew it: ask them to open AirBuild and sign in to Apple again, then try once more. The Team owner’s Apple sign-in in AirBuild has expired and AirBuild could not renew it without them Tell the Team owner; they sign in again in AirBuild (see Connect your Apple Developer account). Retrying before that gives the same answer
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_sales",
  "arguments": {
    "teamId": "00000000-0000-0000-0000-000000000000",
    "projectId": "00000000-0000-0000-0000-000000000000",
    "days": 7
  }
}