---
name: aitrainer-mcp
description: Operate the A Trainer (エアトレ / 에어트레) MCP server (https://mcp.doando.club/mcp) safely with Zero-PII protection. Use when analyzing gym or corporate wellness activity summaries, store traffic, member retention risk segments, Zero-PII survey summaries, company gym manuals, coaching drafts, or registering internal staff follow-up tasks (エアトレ, アンケート集計, 離脱リスク, アクティブ集計, 自社マニュアル検索, フォロータスク, 설문 집계, 이탈 위험).
---

# A Trainer (エアトレ) MCP Operations Skill

Use this skill whenever operating the **A Trainer (エアトレ)** remote MCP server (`https://mcp.doando.club/mcp`) for fitness gyms (`エアトレ.gym`) and corporate wellness teams (`エアトレ.biz` / `エアトレ.tool`).

## Core Rules (Mandatory)

1. **Match the User's Language**
   - Always respond in the language used by the user (e.g., Japanese, English, Korean), while keeping anonymized member IDs (`M-XXXXXXXXXX`) and tool outputs accurate.
2. **Respect Zero-PII Architecture**
   - A Trainer MCP never returns personal identifiable information (names, email addresses, phone numbers, LINE IDs) or raw free-text survey responses. Members are represented solely by opaque anonymized IDs (`M-XXXXXXXXXX`).
   - Never include names, emails, phone numbers, or other PII in tool arguments (such as follow-up task notes); server-side PII guards will reject them.
3. **Human-in-the-Loop Confirmation Before Any Write**
   - 14 of 15 tools are strictly read-only (`readOnlyHint: true`).
   - Before calling the single write tool (`aitrainer_create_member_action_task_v1`), always present the proposed target (`M-XXXXXXXXXX`), due date, task summary, and outreach draft, and wait for explicit user approval.
   - No automated messages are ever sent to members. Staff verify real identities and execute outreach inside the A Trainer admin console (`https://biz-aitrain.doando.club`).
4. **Respect Role & Store Scope**
   - Every tool call enforces live company/store permissions (`system_admin`, `company_admin`, `store_manager`, `store_staff`). Never speculate about unassigned stores or other companies.

---

## Standard Workflows

### 1. Activity Summary & Store Traffic
When asked for today's or monthly activity counts, active users, visit traffic, or 14-day follow-up coverage:
1. Call `aitrainer_get_activity_summary_v1`:
   - Today (JST): `period: "today"` (omit `month`), `group_by: "store"` or `"company"`.
   - Monthly: `period: "month"`, `month: "YYYY-MM"`, `group_by: "store"` or `"company"`.
2. If weekday/time-slot check-in trends or 14-day karte follow-up coverage are requested, also call `aitrainer_get_store_traffic_and_followup_v1`.
3. Present a concise summary table or bullet list (period, store ID, active members, activity count, follow-up coverage).

### 2. Retention Risk Analysis & Outreach Drafting
When asked to identify inactive/at-risk members or draft retention outreach:
1. Call `aitrainer_get_retention_risk_segments_v1` to summarize segments (`active_0_6d`, `cooling_7_13d`, `at_risk_14_29d`, `dormant_30d_plus`).
2. Call `aitrainer_prepare_retention_action_plan_v1` (and optionally `aitrainer_list_company_action_templates_v1`) to retrieve prioritized anonymized candidates (`M-XXXXXXXXXX`), outreach drafts, and clickable admin console links.
3. Present each candidate's anonymized ID, inactivity reason, suggested outreach draft, and admin console link.

### 3. Zero-PII Survey Aggregation
When asked for member survey results, response rates, satisfaction scores, or choice breakdowns:
1. If the survey ID is unknown or multiple surveys exist, call `aitrainer_list_company_surveys_v1` first.
2. Call `aitrainer_get_survey_summary_v1` with `month` (`YYYYMM` or `YYYY-MM`) or `start_date` + `end_date` (`YYYY-MM-DD`) and optional `survey_id`.
3. Summarize response rate, choice distributions (`radio`/`checkbox`), and numeric averages (`num`). Note that free-text (`text`) responses are intentionally omitted for Zero-PII protection (only response counts are returned) and link the user to `https://biz-aitrain.doando.club/survey-analysis` for free-text review.

### 4. Company Manual Search
When asked about gym coaching guidelines, onboarding procedures, or retention policies:
1. Call `aitrainer_search_gym_manuals_v1` with a concise query in the organization's language.
2. Summarize strictly from the grounded excerpts returned. Do not invent store policies not present in the manuals.

### 5. Member Coaching Context (Anonymized)
When asked to review a specific anonymized member (`M-XXXXXXXXXX`):
- Use `aitrainer_list_members_masked_v1` to browse scoped anonymized members.
- Use `aitrainer_get_member_report_card_v1`, `aitrainer_get_member_training_karte_v1`, or `aitrainer_get_member_meal_posture_summary_v1` to gather coaching context without exposing PII.

### 6. Internal Follow-Up Task Registration (Confirmation Required)
When asked to register a follow-up task:
1. Call `aitrainer_list_member_action_tasks_v1` first to avoid duplicate open tasks.
2. Show the exact task proposal (anonymized ID, due date, PII-free note) and ask for explicit confirmation.
3. Only after confirmation, call `aitrainer_create_member_action_task_v1` and return the confirmation plus the admin console link.

---

## Troubleshooting & References
- **`ACCESS_DENIED` or expired session**: Ask the user to reconnect A Trainer MCP via OAuth 2.1 in their AI client settings.
- **Setup Guide**: `https://pr.doando.club/mcp-guide`
- **Data Policy**: `https://corp.doando.club/data-policy/`
- **Support**: `https://corp.doando.club/contact`
