# appstore_customer_reviews

> 读取 App 在 App Store 上的评分和评论，最新的在前，附带已发布的回复。

Source: https://air.build/cn/docs/mcp-tools/appstore_customer_reviews/

读取 App 在 App Store 上的评分和评论，最新的在前，开发者发布过回复时附带回复。可按星级或国家/地区筛选；用 `cursor` 翻页。它不做任何更改。

| 只读 | 破坏性 | 幂等 |
| --- | --- | --- |
| 是 | 否 | 是 |

## 输入

| 输入 | 类型 | 必填 | 默认值 | 作用 |
| --- | --- | --- | --- | --- |
| `teamId` | 字符串（UUID） | yes | — | 团队，来自 [list_teams](https://air.build/cn/docs/mcp-tools/list_teams/)。 |
| `projectId` | 字符串（UUID） | 与 `appId` 二选一 | — | 这个 App 所属的项目，来自 [list_projects](https://air.build/cn/docs/mcp-tools/list_projects/)：这是指定 App 的常用方式。App 是 App Store Connect 上 bundle ID 与该项目构建的 bundle ID 相同的那个。两者都发送时，使用 `projectId`。 |
| `appId` | string | 与 `projectId` 二选一 | — | 来自 [appstore_list_apps](https://air.build/cn/docs/mcp-tools/appstore_list_apps/) 的 App Store Connect App ID，用于没有项目构建的 App。 |
| `appleTeamId` | 字符串（UUID） | no | 所有已连接的 Apple 团队 | 团队的某个 Apple 团队，来自 [appstore_list_apple_teams](https://air.build/cn/docs/mcp-tools/appstore_list_apple_teams/)。配合 `appId` 时，只在这个 Apple 团队中查找该 App。配合 `projectId` 时不需要：由项目的 App 决定。 |
| `ratings` | 整数数组，每个为 1 到 5 | no | 所有评分 | 只看这些星级，例如 `[1, 2]`。 |
| `territory` | string | no | 所有国家/地区 | 只看一个 App Store 国家/地区，用三个字母的代码表示，例如 `USA`、`CHN`。 |
| `limit` | 整数，1 到 100 | no | 20 | 返回多少条评论。 |
| `cursor` | string | no | — | 上一页的 `nextCursor`。 |

每个工具对输入所做的检查见 [服务器与登录](https://air.build/cn/docs/mcp-tools/server/#errors)。

## 结果

一个 JSON 对象，同时以文本和 `structuredContent` 返回。

| 字段 | 说明 |
| --- | --- |
| `reviews` | 评论，最新的在前 |
| `reviews[].reviewId` | 回复时使用的 ID |
| `reviews[].rating` | 星级，1 到 5 |
| `reviews[].title`, `reviews[].body` | 评论者写的内容 |
| `reviews[].reviewer` | 评论者的昵称 |
| `reviews[].territory` | App Store 国家/地区，三个字母 |
| `reviews[].at` | 撰写时间 |
| `reviews[].reply` | 已发布的回复，`body` 和 `state`（`PUBLISHED` 或 `PENDING_PUBLISH`），或 null |
| `nextCursor` | 作为 `cursor` 传入以获取下一页；最后一页为 null |

```json
{
  "reviews": [
    {
      "reviewId": "00000000-0000-0000-0000-000000000000",
      "rating": 2,
      "title": "Crashes",
      "body": "Notes",
      "reviewer": "reviewer",
      "territory": "USA",
      "at": "2026-11-18T09:00:00Z",
      "reply": null
    }
  ],
  "nextCursor": null
}
```

## 错误

每个错误都以工具错误（`isError: true`）返回。_斜体_ 文字代表句中的具体值。所有工具都可能返回的错误见 [服务器与登录](https://air.build/cn/docs/mcp-tools/server/#errors)。

| 消息 | 何时出现 | 怎么办 |
| --- | --- | --- |
| Pass projectId, or appId from appstore_list_apps. | `projectId` 和 `appId` 都没有发送 | 发送其中一个 |
| 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. | 该项目从未构建过 iOS 版本 | 请项目的智能体构建一个 iOS 版本（[send_message](https://air.build/cn/docs/mcp-tools/send_message/)），或用 `appId` 指定 App |
| 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. | 团队已连接的 Apple 团队中没有 App 的 bundle ID 与项目相同，或没有连接任何 Apple 团队 | 用 [appstore_create_app](https://air.build/cn/docs/mcp-tools/appstore_create_app/) 创建 App，或用 `appId` 指定另一个 App |
| No connected Apple team of this Team has that app. See appstore_list_apps. | `appId` 不是任何已连接 Apple 团队（或 `appleTeamId`）中的 App | 从 [appstore_list_apps](https://air.build/cn/docs/mcp-tools/appstore_list_apps/) 获取 ID |
| App Store Connect: _Apple's sentence_ | Apple 拒绝了请求。后面最多附上 Apple 自己的五句话，Apple 指明相关字段时会在括号中注明。App Store Connect 中有待接受的 Apple 协议时，也会这样被拒绝 | 按 Apple 的说明处理。协议由 Apple Developer 账户的账户持有人在 App Store Connect 中接受（商务 › 协议） |
| App Store Connect answered _status_. Try again in a moment. | Apple 拒绝了，但没有说明原因 | 稍后再试 |

## 示例

```json
{
  "name": "appstore_customer_reviews",
  "arguments": {
    "teamId": "00000000-0000-0000-0000-000000000000",
    "projectId": "00000000-0000-0000-0000-000000000000",
    "ratings": [
      1,
      2
    ],
    "limit": 10
  }
}
```
