Data & Analytics

Amplitude MCP

Amplitude MCP lets authorized agents analyze product data, manage charts, dashboards, cohorts, experiments, taxonomy, and related Amplitude workspace resources.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Delete event properties

    Delete one or more event properties in a project. Each requested property is routed by whether eventType is provided: - eventType provided → per-event delete (scoped to that one event): - live on this event → marked as deleted on this event (restorable). - planned on this event → the property-event link is removed on this event only (does NOT affect other events). - unexpected on this event → added to the plan as deleted on this event. - eventType omitted → plan-wide delete (across all events): - live → marked as deleted (restorable). - planned → removed entirely (NOT restorable; you'd have to recreate). Affects all events that used the property. - unexpected → added to the plan as deleted. A single call may mix both — each entry is routed independently. Amplitude-owned properties cannot be deleted. # Before deleting Before an event-property delete, pass includeDeleted: true when looking up which events are using the property so deleted attachments are also included. # Warning Marking an ingested event property as deleted stops ingestion until restored (immediately on main; after merge on other branches). A delete on a non-main tracking-plan branch does not drop live ingest until that branch is merged into main. Removing a planned property does not stop ingestion — it was never ingested. Always surface this to the user before they confirm. # Confirmation This is a destructive taxonomy mutation. Mark as deleted and remove both use the same confirmation gate — never skip it. The first call returns a confirmation_required response showing the bucketed actions, project, and branch; relay that and its warning field to the user. Only call again with confirmed: true after the user explicitly acknowledges. Do not pass confirmed: true on the first call. # Branch targeting Unless specified, the default branch is used. To apply changes to a non-default branch, pass either branchId or branchName. If the user references a branch by name (e.g. "my-edits-branch"), use branchName. Pass only one. # Permissions This tool requires the "Update Tracking Plan" permission and may fail with a 403. Don't pre-warn the user; if it fails, surface the error and note that an admin may need to grant access.

  • Delete user properties

    Delete one or more user properties in a project. Properties that are planned and ingested are marked as deleted (restorable). Properties that are planned but never ingested are removed. Properties ingested but not in the plan are added to the plan as deleted. When a name exists as both customer and Amplitude, only the customer property is targeted. # Warning Marking ingested properties as deleted (toMarkAsDeleted) stops ingestion until restored (immediately on main; after merge on other branches). A delete on a non-main tracking-plan branch does not drop live ingest until that branch is merged into main. Removing planned properties (toRemove) does not stop ingestion — they were never ingested and cannot be restored. Always surface both buckets and this warning to the user before they confirm. This tool only deletes customer-defined user properties. Amplitude-owned user properties cannot be deleted and are always skipped — tell the user if any were requested. # Confirmation This is a destructive taxonomy mutation. Mark as deleted and remove both use the same confirmation gate — never skip it. The first call returns a confirmation_required response listing the bucketed properties, project, and branch; relay that and its warning field to the user. Only call again with confirmed: true after they explicitly acknowledge. Do not pass confirmed: true on the first call. # Branch targeting Unless specified, the default branch is used. To apply changes to a non-default branch, pass either branchId or branchName. If the user references a branch by name (e.g. "my-edits-branch"), use branchName. Pass only one. # Permissions This tool requires the "Update Tracking Plan" permission and may fail with a 403. Don't pre-warn the user; if it fails, surface the error and note that an admin may need to grant access.

  • Manage amp events

    Write to a project's tracking-plan events — raw ingested events, custom events, and labeled (autotrack) events — in one tool selected by `action` + `kind`. Reading events lives in `get_amp_taxonomy`. KINDS: - `event` (default): raw ingested / planned event types in the tracking plan (Purchase, Page Viewed, …). Identified by `eventTypes`. - `custom`: virtual events composed of one or more raw source events with optional filters (`isAutotrack=false`). Identified by `customEventNames` / `customEventIds`. - `labeled`: autotrack / labeled events (`isAutotrack=true`). Same identifiers as custom. Update and delete — MCP cannot create labeled events. ACTION + KIND MATRIX (key params per combo): - create + event → `events: [{ name, isUnexpected, … }]` (isUnexpected: true adds an already-ingested unexpected event to the plan; false creates a brand-new planned event) - create + custom → `name` + `definition` (raw source events) - update + event → maps keyed by exact raw event `name` (`descriptions`, `newNames`, `categories`, `sources`, `tags`, `visibility`, `owners`, …) - update + custom|labeled → maps keyed by id / display name / ce:<name> (`descriptions`, `newNames`, `categories`, `isOfficial`, `eventDefinitions`) - delete + event → `eventTypes`; mark as deleted (ingested) / removed (planned); two-step with `confirmed` - delete + custom|labeled → `customEventNames` / `customEventIds`; permanently removed (same as UI); two-step with `confirmed` - restore + event only → `eventTypes` (custom/labeled cannot be restored) COMMON MISTAKES (seen in production — avoid these): - Using `eventTypes` with kind custom/labeled, or `customEventNames` with kind event. Raw events → `eventTypes`; custom/labeled → `customEventNames`/`customEventIds`. - Sending `kind: "all"`. It is no longer a valid kind here — it only ever meant "custom and labeled together" on a read. Use `get_amp_taxonomy` (`action: events`) to read both, or pick `custom` or `labeled` for a write. - Omitting `action`. It is required now; it used to default to `get`, which no longer exists on this tool. - Putting `ce:<name>` values in a custom event `definition` — source events must be raw event types; custom events cannot nest, and labeled events as sources are not supported yet. - create + event failing with "name already exists": the event was likely already ingested (unexpected) — retry with `isUnexpected: true` to add it to the plan instead. - Setting `description`/`category`/`isOfficial` on an event with `isUnexpected: true` — add to plan first, then update. - update + event on events not yet in the tracking plan — only planned/live events can be updated; add unexpected events to the plan first. - Creating a custom event whose definition duplicates an existing one — the API rejects duplicates and returns the existing event; reuse it instead. HOW TO FIND THE EVENTS YOU ARE ABOUT TO CHANGE: 1. Discover names with `search` (`entityTypes: ["EVENT"]` or `["CUSTOM_EVENT"]`). That is the primary path. 2. Hydrate them with `get_amp_taxonomy` (`action: events`) before writing — it returns status, category, activity, visibility, and ingestion timestamps, and confirms the exact name to key update maps by. DELETE / RESTORE: - For kind:event, delete is a two-step confirmation gate for every target — mark as deleted and remove alike. Never skip confirmation. - Marking as deleted stops ingestion immediately on main; on any other tracking-plan branch, ingest is unchanged until merge. Removing a planned event does not stop ingestion (the event was never ingested). - Restore: on main, ingestion resumes immediately; on any other branch, the restore is staged until merge. Only events that were marked as deleted can be restored; removed planned events must be recreated. - Custom/labeled delete is permanent and does not use this branch-ingest rule. TYPICAL FLOWS: - Add raw events on a branch: manage_amp_taxonomy create_branch (if main protected) → create with kind event + branchName → update metadata as needed. - Build a custom event: get_amp_taxonomy for the raw source events → create with kind custom + definition (source events). - Delete raw events (not custom/labeled): delete with kind event (confirmation_required first), then confirmed: true after the user acknowledges the buckets and branch. Ingested events are marked as deleted (restorable); planned events are removed (not restorable). - Permanently remove a custom/labeled event: delete with kind custom|labeled + customEventNames/Ids (confirmation_required first), then confirmed: true. Cannot be restored. - Restore a deleted raw (not custom/labeled) event: get_amp_taxonomy with `action: events` + `includeDeleted: true` to find it, then restore with its exact `eventTypes`. PROJECT ID: - Pass numeric `projectId`. Get it from `get_amplitude_context` if needed. - If omitted and the user has exactly one accessible project, that project is used automatically. DO NOT USE FOR: - Reading events → `get_amp_taxonomy` (`action: events`) - Fuzzy discovery → `search` - Properties → `manage_amp_properties` (writes) / `get_amp_taxonomy` (reads) - Branch governance → `manage_amp_taxonomy` (or legacy branch tools)

  • Manage amp taxonomy

    Read Data workspace governance settings and manage tracking-plan branches for a project. One tool selected by `action` (default `get`). TYPICAL FLOW (most common production path): 1. `get` first — learn `mainProtected`, naming conventions, approval workflow, and environments before changing the plan. 2. If `mainProtected` is true (or the user wants an isolated change), `create_branch` — do not mutate main. Optionally `get` again / check `branches` first so you do not recreate an existing name. 3. Apply tracking-plan edits with the taxonomy mutation tools (`create_events`, `create_properties`, `update_event`, …) and pass `branchName` / `branchId` to target that branch — those tools are separate from this one. 4. Finish with `merge_branch` (two-step `confirmed`) when the user wants changes on main, or `delete_branch` (two-step `confirmed`) to abandon. Many sessions stop after step 3 with work left on the feature branch — that is normal. 5. Less common: `refresh_branch` (pull main into the feature branch; two-step), `review_branch` (approve/unapprove when approvals are required), `update_branch` (description only). ACTIONS: - `get` (default): workspace settings + environments + branches in one response. Includes `mainProtected` (true when approvalWF is "Required" — changes must go on a feature branch, not main) and `workflowHint`. - `create_branch`: create a branch off main. Requires `name`. - `update_branch`: update a branch description (not name). Requires `branchName` or `branchId` + `description`. - `delete_branch`: delete a non-main branch. Two-step: call once, then again with `confirmed: true` after the user acknowledges. - `merge_branch`: merge a feature branch into main. Two-step with `confirmed`. If approvals are required and missing, reports status instead of merging. - `refresh_branch`: pull latest main into a feature branch. Two-step with `confirmed`; conflicts overwrite the feature-branch version. - `review_branch`: approve or unapprove a branch for merge. Pass `reviewDecision` ("approve" | "unapprove"). Prefer after the branch has pending changes — empty branches cannot be approved. PROJECT ID: - Pass numeric `projectId` (e.g. "123456"). Get it from `get_amplitude_context` if you do not already have one. - If omitted and the user has exactly one accessible project, that project is used automatically. - Do not invent project ids. Do not use project names. DO NOT USE FOR: - General org/user/project discovery → `get_amplitude_context` - Creating or updating events/properties → the taxonomy mutation tools (`create_events`, `create_properties`, …) with `branchName` when on a feature branch - Listing events/properties → `get_events` / `get_properties`

  • Use amplitude metrics

    Unified entry point for metric definitions, goals, and goal alerts in a project. Replaces get_metrics, create_metric, update_metric, delete_metric, get_metric_goals, the five goal write tools, and the four goal-alert CRUD tools. WHEN TO USE: - Anything about defining metrics, setting targets on metrics, listing goals/pacing, or configuring goal alerts. - NOT for querying metric *values* over time — use query_metric or query_dataset instead. INSTRUCTIONS: - Select the operation with `action`. - Metric defs: resolve metricIds with search first; create_metric needs projectId, name, and metricType plus type-specific fields (same rules as the legacy create_metric tool). - Goals: use get_goals to discover goalIds before update / archive / restore / delete / alert actions. - update_metric may be two-step when changing a metric definition with dependents; delete_metric and delete_goal may also be two-step when dependents exist. For any of these operations, first call without confirmed, show the returned dependency payload to the user, then retry with confirmed: true only after user confirmation. - get_goals accepts either metricId OR projectId, not both. DO NOT USE FOR: - Chart or experiment metric *values* → query_metric / query_dataset. - Experiments and flags → get_experiments / get_flags / create_experiment.