datacub Docs
MCP
Markdown

MCP tools reference

Every tool the datacub MCP server offers, grouped by area. Your assistant picks them for you; this page is for the curious and for anyone narrowing a connection.

How to read this page:

  • Write tools change something. They need a connection you allowed to make changes and the Member role or above on the project, and they run only when you ask.
  • Member tools show people one by one. They need the Member role or above on the project.
  • Chart tools come with a chart in Claude, ChatGPT and VS Code.
  • Nearly every tool takes project_id: the short 8-character project ID from list_projects, or the long one. Dates are {from, to} calendar days in your project's time zone; the default range is the last 30 days.
  • Every answer carries a url that opens the same view in datacub. Numbers are exact, the same as your dashboard.
  • The area name in each heading is what ?features= takes (see narrowing a connection).

Setup (setup)

ToolInputsReturns
list_projectslimit, cursorthe projects you can read: short ID, name, time zone, a link to each dashboard. The usual first call
get_projectproject_idname, time zone, creation date, allowed websites and apps, whether it asks for consent first, active ingestion keys
get_sdk_setupplatform (web or react-native), lang, project_idstep by step install: SDK, init with your project ID, identify, a short event plan, how to verify
get_integration_statusproject_idfirst and newest event, events in the last 24 hours and the SDK that sent them, whether identify was seen, which business events arrived this week, bot traffic left out of reports
get_docstopic: workflows, metrics, query_model, setup_web, setup_react_native, events, identify, privacy, feedbackshort reference: which tool answers which question, how every number is defined, the query fields and operators. Always available, whatever the connection is narrowed to

Events (events)

ToolInputsReturns
list_event_definitionsproject_id, range, limit, cursorevents received in the range with events and people, and the events your team declared, with descriptions and expected properties
get_event_schemaproject_id, event, rangeone event's declared description and properties, and the property keys it actually carried. A name never seen comes back with the closest names
register_event_definition (Write)project_id, name (snake_case, such as signup_completed), description, propertiesdeclares or updates an event and its expected properties

Web (web)

ToolInputsReturns
web_overview (Chart)project_id, range, filters, limitthe dashboard's main page: visitors, known users, page views, sessions, session length, bounce, new and returning, each against the previous period; top pages, sources, channels, countries and devices
live_nowproject_idpeople online (active in the last 5 minutes), people per minute over the last 30 minutes, what they are looking at, and the latest events by name

Analytics (analytics)

ToolInputsReturns
trend (Chart)project_id, measure (events, pageviews, visitors, known_users, sessions), interval (hour, day, week, month), breakdown, compare, filters, identity, rangeone measure over time, optionally split by a field and compared with the previous period
explain_change (Chart)project_id, measure, range, compare_to, filters, by (up to 8 fields)why a number went up or down: the channels, sources, entry pages, countries, devices, systems and browsers that moved it most, each with its share of the change
compare_periods (Chart)project_id, a, b (two date ranges), filtersthe overview numbers for both periods side by side, with the change
query_analytics (Chart)project_id, queryany aggregate question in the dashboard's query model: overview, trend, breakdown, values, funnel, funnel_next, retention, lifecycle, active, stickiness, rhythm, paths, actions or activation. The same model as the API
list_saved_funnelsproject_idyour team's saved funnels: ID, name, steps and window
run_saved_funnel (Chart)project_id, funnel_id, range, breakdowna saved funnel as the Funnels page counts it: people at each step, conversion, drop-off and time between steps
funnel (Chart)project_id, steps (2 to 6), window, entry, breakdown, conditions, filters, identity, range, limithow many people went through the steps in order, with conversion and drop-off per step. Steps never seen come back with close names
funnel_nextproject_id, steps, stopped, window, conditions, filters, identity, range, limitthe first page, named click or event people did after the steps; with stopped, what those who stopped at that step did instead
retention (Chart)project_id, period (day, week, month), periods (up to 31), start, return, mode, filters, identity, rangecohorts by first activity or a start event, and the share who came back in each later period
paths (Chart)project_id, start, goal, depth (up to 5), width (up to 8), filters, rangehow visits move between pages, step by step, and with a goal the share that converted
lifecycle (Chart)project_id, interval, filters, identity, rangenew, returning, resurrecting and dormant people per day, week or month
active_users (Chart)project_id, filters, identity, rangedaily, weekly and monthly active people, and stickiness (DAU over MAU)
stickiness (Chart)project_id, engagement, filters, identity, rangehow many people were active on 1, 2, 3 or more days of the range
engagementproject_id, sections, every (week, month), filters, rangethe Engagement page under your team's own definition of an active person: active people, when, whether they return, how often, lifecycle
feature_adoption (Chart)project_id, range, limityour events and named clicks by how many active people use them, first-time users and the previous period
investigate_event (Chart)project_id, event, by, rangeone event over time: daily events and people, and a breakdown by one field
investigate_users (Chart)project_id, filters, rangethe people matching your filters, in totals: users, new and returning, sessions, Registered and Guest, channels

People (people)

ToolInputsReturns
find_people (Member)project_id, status (all, identified, anonymous), conditions (did or did not do an event, new, returning, a property), power, funnel (at, past or dropped at a step), filters, sort, range, limit, cursorpeople one by one: user ID (or browser ID for guests), first and last seen, events, sessions, active days, country, device, source, landing page, traits, and a link to each profile
get_person (Member)project_id, subject (from find_people), range, sessions (up to 20)one person's profile and latest visits: when, from where, on which device, and every page, screen, click and event. Each profile opened is recorded, as in the dashboard

Email, name and phone traits never leave through MCP, and other trait values are masked like event values.

Feature flags and experiments (flags)

ToolInputsReturns
list_flagsproject_idfeature flags (key, on or off, share of users) and experiments (key, running or stopped, success event)
create_flag (Write)project_id, kind (flag or experiment), name, key, on, rollout_percent, goal_eventa flag, created off unless you asked for it on or for a share; or an experiment that starts at once, splits users 50/50 and measures your success event
update_flag (Write)project_id, key, on, rollout_percent, name, stop, kindturns a flag on or off, changes its share or name; stop ends an experiment for good (its results stay)
get_experiment_results (Chart)project_id, keypeople in A and B, conversions, rates and the 95% interval for the difference; status collecting, inconclusive or evidence

Feedback (feedback)

ToolInputsReturns
list_feedbackproject_idyour feedback questions: status, what each asks, its trigger, and how many answered
get_feedback_results (Chart)project_id, question_id, versionanswers per choice, thumbs or score (with the NPS), how many also wrote something, and how many saw, closed or ignored it. What people wrote stays in your dashboard
create_feedback_question (Write)project_id, question (what to ask, its type, its trigger, its language), publisha draft question, or a live one with publish
publish_feedback_question (Write)project_id, question_id, action (publish, pause, archive)publishes the draft as the next version, pauses or archives the question
set_feedback_look (Write)project_id, look (colours, theme, font, corners, size, shadow, position, button text)changes how the feedback card looks for every question; returns the full look

Feature flags and feedback tools answer only when those features are on for your account.

Prompts

NameInputsWhat it runs
weekly_reviewproject, langweb_overview, explain_change, saved funnels, engagement, feedback results
why_did_it_changeproject, metric, period, langexplain_change, then trend and get_integration_status to confirm
check_my_setupproject, langget_integration_status, list_event_definitions, get_sdk_setup
find_funnel_leaksproject, journey, langsaved funnels or funnel, funnel_next, and find_people if your role allows
who_are_my_best_usersproject, langfind_people, investigate_users, feature_adoption, retention