# Reference · meitu-pack-same-product-group

## MCP endpoint

| Item | Value |
| --- | --- |
| URL | `https://service.meitu.io/api/mcp` |
| Auth | `Authorization: Bearer <API_Token>` |
| Docs | https://meitu.io/mcp |

## Tools

### `list_orders`

Key filters for this skill:

| Arg | Role |
| --- | --- |
| `lineId` | Same product (Pro TravelLine / ProductID) |
| `hasGroup` | `0` = 未成团 |
| `orderStatus` | `3` = 已确认（拼团前置） |
| `travelStartDateStart` / `travelStartDateEnd` | Inclusive travel-start window |
| `page` / `size` | Paginate; default window may need multiple pages |

Order status cheat sheet: `0`其他 `1`已录入 `2`已占位 `3`已确认 `4`已取消 `5`已完成 `10`待审批。

### `pack_orders_to_group`

Write — requires `confirm: true`.

| Arg | Required | Notes |
| --- | --- | --- |
| `orderIds` | yes | Same product + same travel start |
| `startDate` | yes | `yyyy-MM-dd` |
| `endDate` | yes | `yyyy-MM-dd` |
| `isNewGroup` | yes | Default `true` for this skill |
| `lineId` | if new line group | Product ID |
| `groupId` | if merge | Existing group |
| `groupName` | no | Optional display name |
| `confirm` | yes | Must be `true` |

Success payload includes `groupId`.

### Optional

- `get_product` — verify line name / days
- `get_group` — verify pack result
- `update_order_status` — only when user asks to confirm drafts before pack

## Server constraints (do not ignore)

1. All orders in one pack call must be **confirmed** (`orderStatus=3`).
2. Same line → same **travel start date**.
3. Do not mix 定制(`groupType=4`) / 包团(`3`) / 线路散拼 in one pack.
4. New line group requires `lineId`; customize/bao-tuan new group may omit lineId but need trip data on the anchor order.

## Example prompt

「读取 https://meitu.io/skills/meitu-pack-same-product-group/SKILL.md ，把产品 49714 未来三天未成团已确认订单按出行日拼成团。」

## Date window example

If today is `2026-09-03`:

- `travelStartDateStart=2026-09-03`
- `travelStartDateEnd=2026-09-05`
