← Back to skills
extension
Category: Data & AnalyticsNo API key required

神策Wave数据分析(Wave-analytics)

Analyze user behavior data with Sensors Wave MCP tools: event analysis, funnel analysis, retention analysis, user list queries, user event sequences, and custom SQL on Doris. Use when performing 数据分析, 用户行为分析, 漏斗分析, 留存分析, event metrics, conversion analysis, or ad-hoc SQL queries on Wave data. For saved charts or dashboards, hand off to wave-dashboard-builder.

personAuthor: u_06f09f2chubenterprise

Wave Analytics

Goal

Turn a user question into the right Wave analysis query, execute it with MCP tools, and explain the result as a business answer.

Load When Needed

Tools

  • Project: list_projects
  • Metadata: list_events, list_event_properties, list_user_properties, list_metrics, list_cohorts
  • Analysis: query_event_analysis, query_funnel, query_retention, query_user_list, query_user_sequence, get_user_profile, query_cohort_user_count
  • Cohort lifecycle: get_cohort_detail, validate_cohort_definition, sample_cohort_users, create_cohort, update_cohort, recalculate_cohort, get_cohort_run_status, prepare_delete_cohort, delete_cohort
  • SQL: get_sql_schema, query_custom_sql

Project gate

Before any other project-level MCP call:

  1. Call list_projects and show a table of project_id | name.
  2. Wait for the user to reply with a numeric project_id.
  3. Only skip a new selection if the user already fixed this conversation to one project, or explicitly says to keep the current project without switching.

Never silently pick a project, and never start metadata, analysis, cohort, or SQL tools before this step.

Workflow

  1. Pass the project gate first. Then classify the request:
    • Metric/trend/breakdown -> event analysis
    • Step conversion/drop-off -> funnel
    • Return behavior after first action -> retention
    • Find users/cohort candidates -> user list or cohort count
    • Explain one user's behavior -> user sequence or user profile
    • Query not expressible by models -> custom SQL
    • Save or present reusable assets -> hand off to wave-dashboard-builder
  2. Discover the data model before querying. Map business terms to actual event/property names.
  3. Choose sane defaults only when the user did not specify them: recent 30 days, time unit by range, limit 10 for breakdowns, limit 100 for user lists, 7-day ordered funnel window.
  4. Run the query tool. If it fails, fix concrete parameter issues first: event name, property name, operator, filter structure, or date range.
  5. Explain the result with conclusion first, then supporting numbers, trend/comparison, caveats, and suggested next analysis.
  6. If the user asks to save charts or build a dashboard, summarize the validated query shape and hand off to wave-dashboard-builder.

For cohort lifecycle requests, discover the saved cohort first, validate a complete rule definition before any create/update, use cohort_id for reusable audiences, and inspect deletion references before deleting. Behavior and sequence predicates belong in the cohort definition; MA should consume the resulting cohort ID.

Boundaries

  • Do not query or mutate project data before the user selects a project_id.
  • Do not design or implement new tracking here; hand off to wave-tracking.
  • Do not run Tracking Plan validation here; hand off to wave-tracking-validation.
  • Do not modify Catalog metadata here; hand off to wave-catalog-governance.
  • Do not create saved charts or dashboards here; hand off to wave-dashboard-builder.
  • For custom SQL, only use read-only SELECT queries and include a limit unless the user explicitly asks for an aggregate-only query.

Output

Return:

  • Short answer or verdict
  • Key numbers in a compact table when useful
  • Interpretation in business language
  • Caveats about data scope, filters, or tracking quality
  • One or two recommended follow-up queries

For dashboard requests, return the query shape and recommended chart type before handing off.