# 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](https://docs.datacub.to/mcp/faq#can-i-limit-what-a-connection-can-do)).

## Setup (`setup`)

| Tool | Inputs | Returns |
|---|---|---|
| `list_projects` | `limit`, `cursor` | the projects you can read: short ID, name, time zone, a link to each dashboard. The usual first call |
| `get_project` | `project_id` | name, time zone, creation date, allowed websites and apps, whether it asks for consent first, active ingestion keys |
| `get_sdk_setup` | `platform` (`web` or `react-native`), `lang`, `project_id` | step by step install: SDK, init with your project ID, identify, a short event plan, how to verify |
| `get_integration_status` | `project_id` | first 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_docs` | `topic`: `workflows`, `metrics`, `query_model`, `setup_web`, `setup_react_native`, `events`, `identify`, `privacy`, `feedback` | short 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`)

| Tool | Inputs | Returns |
|---|---|---|
| `list_event_definitions` | `project_id`, `range`, `limit`, `cursor` | events received in the range with events and people, and the events your team declared, with descriptions and expected properties |
| `get_event_schema` | `project_id`, `event`, `range` | one 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`, `properties` | declares or updates an event and its expected properties |

## Web (`web`)

| Tool | Inputs | Returns |
|---|---|---|
| `web_overview` (Chart) | `project_id`, `range`, `filters`, `limit` | the 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_now` | `project_id` | people 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`)

| Tool | Inputs | Returns |
|---|---|---|
| `trend` (Chart) | `project_id`, `measure` (`events`, `pageviews`, `visitors`, `known_users`, `sessions`), `interval` (`hour`, `day`, `week`, `month`), `breakdown`, `compare`, `filters`, `identity`, `range` | one 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), `filters` | the overview numbers for both periods side by side, with the change |
| `query_analytics` (Chart) | `project_id`, `query` | any 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](https://docs.datacub.to/reference/api.md) |
| `list_saved_funnels` | `project_id` | your team's saved funnels: ID, name, steps and window |
| `run_saved_funnel` (Chart) | `project_id`, `funnel_id`, `range`, `breakdown` | a 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`, `limit` | how many people went through the steps in order, with conversion and drop-off per step. Steps never seen come back with close names |
| `funnel_next` | `project_id`, `steps`, `stopped`, `window`, `conditions`, `filters`, `identity`, `range`, `limit` | the 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`, `range` | cohorts 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`, `range` | how visits move between pages, step by step, and with a goal the share that converted |
| `lifecycle` (Chart) | `project_id`, `interval`, `filters`, `identity`, `range` | new, returning, resurrecting and dormant people per day, week or month |
| `active_users` (Chart) | `project_id`, `filters`, `identity`, `range` | daily, weekly and monthly active people, and stickiness (DAU over MAU) |
| `stickiness` (Chart) | `project_id`, `engagement`, `filters`, `identity`, `range` | how many people were active on 1, 2, 3 or more days of the range |
| `engagement` | `project_id`, `sections`, `every` (`week`, `month`), `filters`, `range` | the 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`, `limit` | your 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`, `range` | one event over time: daily events and people, and a breakdown by one field |
| `investigate_users` (Chart) | `project_id`, `filters`, `range` | the people matching your filters, in totals: users, new and returning, sessions, Registered and Guest, channels |

## People (`people`)

| Tool | Inputs | Returns |
|---|---|---|
| `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`, `cursor` | people 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`)

| Tool | Inputs | Returns |
|---|---|---|
| `list_flags` | `project_id` | feature 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_event` | a 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`, `kind` | turns 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`, `key` | people in A and B, conversions, rates and the 95% interval for the difference; status `collecting`, `inconclusive` or `evidence` |

## Feedback (`feedback`)

| Tool | Inputs | Returns |
|---|---|---|
| `list_feedback` | `project_id` | your feedback questions: status, what each asks, its trigger, and how many answered |
| `get_feedback_results` (Chart) | `project_id`, `question_id`, `version` | answers 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), `publish` | a 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

| Name | Inputs | What it runs |
|---|---|---|
| `weekly_review` | `project`, `lang` | `web_overview`, `explain_change`, saved funnels, `engagement`, feedback results |
| `why_did_it_change` | `project`, `metric`, `period`, `lang` | `explain_change`, then `trend` and `get_integration_status` to confirm |
| `check_my_setup` | `project`, `lang` | `get_integration_status`, `list_event_definitions`, `get_sdk_setup` |
| `find_funnel_leaks` | `project`, `journey`, `lang` | saved funnels or `funnel`, `funnel_next`, and `find_people` if your role allows |
| `who_are_my_best_users` | `project`, `lang` | `find_people`, `investigate_users`, `feature_adoption`, `retention` |
