Browse the docs

MCP tools reference

Preview This capability is in Preview and may not be enabled for your organization yet. About release stages

The eleven read-only tools the Neuralift MCP server exposes, how they fit together, the parameters they share, and how to read what they return.

The Neuralift MCP server exposes eleven tools. All of them are read-only, scoped to the organizations the credential reaches (the organization an API key belongs to, or the organizations you’re a member of when you sign in), and answer from published use cases only; that includes the two data-dictionary tools, which describe the dataset behind each published use case and nothing else. You rarely call these directly (your assistant picks the right tool from your question), but knowing what each returns helps you ask better questions and check the answers.

How the tools fit together

Everything hangs off a use case. Your assistant starts with list_use_cases, then filters the other tools by that use case’s id so it never mixes two runs:

  • Use case → its segments (list_segments, then get_segment for one in full) → each segment’s tactics (list_segment_tactics).
  • Use case → its ranked actions (list_actions, then get_action) → the tactics each action is built from.
  • Use case → its readings (list_readings) → segment sizes and movement at each reading (list_reading_segment_counts).
  • Use case → its prepared dataset (list_prepared_datasets) → the data dictionary, column by column (list_prepared_dataset_columns).
  • Use case → aggregate questions over the customer data behind it (query_segments).

Tools

ToolWhat it returns
list_use_casesYour organization’s published use cases: name, the brief from the use case definition (goal, products, channels, temporal context) and its KPIs in priority order, how many customers were placed in segments and how many were left unclassified, the reading schedule, when the use case was published, rebuild lineage (which use case it replaced, or was replaced by), and where its delivered results live (see Delivering results).
list_segmentsThe segments of a use case as a compact summary: name, size, kind (classified or unclassified), the one-paragraph thesis from its field guide, and which of the use case’s KPIs it can move most. Ask for detail: "full" to get whole records in pages.
get_segmentOne segment in full: the complete field guide (thesis, who is in it in plain words, a profile of who they are and what they respond to, and how the segment borders its neighbors), the field guide marks (up to nine measured traits that identify a member, strongest contrast first, each comparing customers inside the segment with everyone outside it), its KPI counts and KPI priorities, and its segment tactics.
list_segment_tacticsSegment tactics: the tactic, the KPIs it targets, its evidence and scores, and the activation filter that selects its audience inside the segment, with an account of any stated condition that was not applied and why.
list_actionsThe use case’s ranked actions as a summary: rank, title, reach (with a per-segment breakdown), the structured value block behind the value headline, channels, and timing. Ask for detail: "full" for whole records in pages.
get_actionOne action in full: why it works, its strategy, the scores and the reasons behind the tier chips, hero stats, evidence claims, the play’s who/offer/nudge/exclude steps, the measurement plan, and the segment tactics it is composed from, each with its angle.
list_readingsThe timeline of readings for a use case: each membership snapshot’s sequence number, date, what triggered it, its status, the population size, and its data-drift check. Reading 0 is the initial fit; later readings refresh membership from new data.
list_reading_segment_countsEach segment’s size at each reading, with the movement since the previous reading: customers who moved in from another segment, moved out to one, entered the population, or left it. Never netted, so you can see churn between segments as well as growth.
list_prepared_datasetsThe customer table each published use case was fitted on: the data dictionary at table level, with its description, row count, and source type. One dataset per published use case.
list_prepared_dataset_columnsThe data dictionary at column level: column name and type, description, narrative, distinct-value count, annotations, sample values, summary statistics, and, for a KPI column, which of the brief’s KPIs it satisfies. Filter by prepared_dataset_id to stay inside one use case’s dictionary.
query_segmentsCounts, shares, averages, medians, percentiles, and histograms over the customer data behind a use case, grouped by segment, at a chosen reading, optionally filtered by conditions on dictionary columns. Returns aggregates only, never individual customers.

Things to know before reading the results

  • The unclassified segment is real. Every use case has one segment with kind unclassified (id -1, titled “Unclassified”): the customers the model could not place with confidence at this reading. It is a genuine share of your customer base, not an error. It carries KPI counts so you can describe who is in it, but no narrative, tactics, or actions, and no action targets it. Segment percentages are shares of the customers placed in segments; the whole customer base is that number plus the unclassified count. See the segment landscape.
  • A segment’s identity is its use case plus its segment id. The segment_id is the model’s own id for the group, stable across readings within a use case and the same id you see in delivered segment-labeled data. Every row that refers to a segment also carries its id and title, so your assistant can name segments without extra lookups. A rebuilt use case starts the ids and names over; follow the rebuild lineage on the use case rather than matching names across a rebuild.
  • KPIs are defined in the brief. Each use case carries its KPIs as the brief wrote them, with a definition, an objective, the direction you want them to move, and the dictionary column that measures each one. When you ask about “valuable” or “loyal” customers, the assistant should resolve that against the brief’s KPIs before picking a column.
  • The narrative is the field guide; the numbers are measured. A segment’s story comes from its field guide, and the field guide marks are the evidence: measured comparisons between customers inside the segment and everyone outside it. Only the prose is generated. Use cases explained before September 2026 may return segment names, tactics, and KPI counts but no field guide; ask your Neuralift team if that’s the case for a use case you rely on.
  • Readings are membership snapshots. A reading refreshes which customers are in which segment from new data. It does not change the segments themselves, their names, or their tactics.

Shared query parameters

Every list tool accepts the same optional parameters. Your assistant fills these in from how you phrase your question.

ParameterWhat it does
filterNarrows results to records matching field conditions: for example, only the segments of one use case, or only tactics above an expected-impact threshold. Conditions can be combined with and / or.
sortOrders results by one or more fields, ascending or descending.
limitCaps how many records come back. The default is 25, so for a use case with more segments or tactics than that the assistant should raise the limit or page.
offset, after, beforePage through long lists. Each response says whether more records exist and carries a cursor for the next page.
result_typeReturns the records (the default), a count of how many match, whether any match, or one aggregate (max, min, sum, average, count) of a field.
detailOn list_segments and list_actions only: summary (the default, a compact row) or full (the whole record).

Summaries, full records, and the get tools

list_segments and list_actions return compact rows by default, so one call can list a whole use case and let the assistant pick what to read next. To read one record in full, the assistant calls get_segment or get_action with its id. To read full records in bulk, it passes detail: "full" and pages in small batches, because a full segment is several kilobytes.

Paging

Every list tool returns at most 25 records unless asked for more, and every response says whether more exist. A use case commonly has more than 25 segments or tactics, so an assistant that reports “all the tactics” from a single default call may be missing some. Asking “how many tactics are there?” first is a reliable habit.

Reading an action’s value

An action’s value block holds the calculation behind its headline: headline = audience × assumed rate × per-unit value.

  • The assumed rate is an assumption by design: the one term you tune in the app with a slider. It is not measured.
  • Audiences overlap. Actions reach overlapping customers, so headlines are not additive across actions. Actions valued in customers count expected conversions and are not comparable with currency headlines.
  • grounded means the audience and per-unit terms come from measured data; it does not mean the per-unit value is the right one for the action’s mechanism. per_unit_kind says what one conversion is worth: a full KPI event, an incremental add-on to an event the customer was already going to make, or an avoided cost. The last two are estimates.

The same calculation is explained in the app; see Where the number comes from.

Reading a tactic’s activation filter

A tactic’s activation_filter is what selects its audience inside its segment:

KeyMeaning
predicatesThe conditions actually applied, each naming a dictionary column. An empty list is a deliberate whole-segment tactic, not a missing filter; the tactic’s audience description says so.
unmapped_qualifiersAudience conditions the tactic states that the data cannot express, each naming the missing column. You apply these by other means, or accept the broader audience.
already_trueStated conditions every member of the segment already meets, so there is nothing to apply.
delivery_instructionsCreative, channel, timing, or budget notes. These were never filters.
dropped_predicates, relaxed_dropped_predicatesConditions removed because they failed validation against the dictionary, or because the full set matched nobody. Each carries a reason.

A dictionary may carry a consent or restriction column, and conditions on one are tagged as hygiene. Where none exists, suppressing opted-out customers is the job of your own sending system. The filter is also what delivered results use to select each tactic’s audience.

Querying the customer data

query_segments is the one tool that reads the customer data itself rather than precomputed results. Your assistant reaches for it when a question needs a column, a condition, or a statistic the other tools don’t hold: “how many customers in segment 4 have ordered more than twice”, “compare median spend across segments”, “what share of each segment matches this tactic’s filter”.

What it guarantees:

  • Aggregates only. It returns counts, shares, sums, means, medians, percentiles, standard deviations, and histograms. It never returns individual customer rows or ids, and groups with very few customers are suppressed and counted rather than shown.
  • Segment is always a grouping dimension. Results describe the segments the model produced. The tool cannot re-segment customers, and a ranking of segments by a measure is a fact about the data, not one of Neuralift’s ranked actions.
  • Conditions are validated against the data dictionary. A condition that can’t be applied is dropped and reported, and the result’s status says ok (everything applied), partial (something was dropped; the result names it), or rejected (the request could not be honored; every problem is listed with the nearest column names). A text value the dictionary can’t vouch for still runs but is flagged, so a zero count under a warning may be a misspelling.
  • Pinned to a reading. Figures come from one reading (the latest complete one by default), so they reconcile with that reading’s segment counts and KPI counts.
  • Rate-limited per credential, and limited to the columns in the data dictionary.

A tactic’s activation filter can be pasted straight into a query, which is how your assistant re-counts a tactic’s audience or profiles it on columns the tactic didn’t use.

What your assistant is told at connection time

When a client connects, the server sends it a set of instructions alongside the tool list: the vocabulary above (use case, reading, segment, unclassified, KPI, tactic, action), how the tools relate, how to read values and activation filters, when to use query_segments, and the paging limits. Most assistants keep these in context for the whole session, so your assistant arrives already primed to read Neuralift’s results the way this page describes. If an answer seems to ignore one of these rules (adding action headlines together, for example), say so; the correction is usually immediate.

Not on the surface

Some things in the product are deliberately not exposed through MCP:

  • Individual customers. No tool returns customer rows or ids; membership comes to you through delivered results.
  • Insights, personas, segment summaries, and defining features from earlier explanation methods. Current use cases describe segments through the field guide and its marks instead.
  • How results were produced: pipeline state, storage locations, job ids, raw error text, and who uploaded what. These are private fields, never returned and not available as filters.
  • Observation results for actions you’ve run. These will arrive when the measurement loop is available over MCP.

Worked example

Ask your assistant:

Which segment in my latest use case has the strongest evidence behind its top tactic, and who's in it?

A typical resolution: the assistant calls list_use_cases sorted by published_at descending with limit 1 to find the latest published use case; list_segment_tactics filtered to that use case’s segments, sorted by evidence_strength descending, with a small limit; then get_segment for the winning tactic’s segment to read its field guide and marks. It answers with the tactic, the segment’s thesis, and two or three measured traits that identify a member, each with its in-segment and out-of-segment figure.

Because filtering, sorting, and paging happen on the server, the assistant retrieves only what your question needs rather than pulling everything and sifting locally.

Next steps