---
title: MCP tools - MCP
description: See the Contentsquare MCP server tools your AI agent uses to find projects, compute metrics, analyze funnels and journeys, and investigate errors.
source_url:
  html: https://docs.contentsquare.com/en/mcp/tools/
  md: https://docs.contentsquare.com/en/mcp/tools/index.md
---

> ## Documentation index
> Fetch the complete documentation index at: https://docs.contentsquare.com/llms.txt
> Use this file to discover all available pages before exploring further.

The Contentsquare MCP server gives your AI agent tools to explore your Contentsquare data. You don't call these tools yourself. Ask a question in natural language, and your AI agent chooses the right tools and fills in their parameters.

The tools can only return data from projects where you already have Contentsquare permissions.

## How your AI agent uses the tools

* Experience Analytics

  To answer a question, the agent works through these steps:

  1. **Find your project.** The agent calls `listProjects` to get the ID of the project you want to analyze.
  2. **Look up the objects in your question.** The agent finds the mappings, page groups, segments, or goals you mention, and gets their IDs.
  3. **Run the analysis.** The agent calls the metrics, analysis, or error tool that fits your question.

  The analysis tools take these common options:

  * **Date range.** A start and end date and time. Analysis tools accept a range of up to 92 days, and error tools up to 31 days.
  * **Device type.** All devices, or only desktop, mobile, or tablet.
  * **User filter.** An optional filter that limits the analysis to a subset of users. You can filter by browser, goal completion, segment, or page interaction (bounce, exit, or landing page), and combine conditions with AND and OR.

* Experience Platform

  To answer a question, the agent works through these steps:

  1. **Find your projects.** The agent calls `listHierarchy` to get the IDs of your projects, environments, and data sources.
  2. **Look up the objects in your question.** The agent resolves the IDs of the mappings, page groups, segments, events, or properties you mention. It never guesses IDs.
  3. **Run the analysis.** The agent calls the analysis, metrics, or error tool that fits your question.
  4. **Send feedback.** After presenting results, the agent can ask for your feedback and send it with `submitMcpFeedback`.

  The analysis tools take these common options:

  * **Date range.** A preset, such as the last 30 days, or a custom start and end date. If you don't specify one, the tools use the last 30 days.
  * **Data sources.** By default, the agent uses all of the data sources of the project or account in scope, and tells you which ones it used.
  * **Segment.** An optional saved segment, an ad hoc query, or both, to limit the analysis to a group of visitors.

## Discover your project and objects

These tools look up the projects and objects you mention in your prompt, such as mappings, page groups, segments, goals, or events. They return the IDs that the analysis tools need.

* Experience Analytics

  | Tool | Description |
  | - | - |
  | `listProjects` | Returns the projects (ID and name) that you can access. The agent calls it first. |
  | `searchMappings` | Searches and retrieves the mappings of a project. |
  | `getPageGroupsForMapping` | Retrieves all the page groups of a mapping, sorted alphabetically by name. |
  | `searchSegments` | Searches and retrieves the segments of a project, optionally filtered by name. For large projects, the results are returned in pages. |
  | `searchGoals` | Searches and retrieves the goals of a project. |

* Experience Platform

  | Tool | Description |
  | - | - |
  | `listHierarchy` | Returns the full project hierarchy of your account: projects, their environments, and data sources. It takes no parameters. The agent calls it first. |
  | `getMappings` | Retrieves the mappings in a project, optionally filtered by name. A mapping has an ID and a name. It doesn't contain page group details. |
  | `getPageGroups` | Retrieves page groups, optionally filtered by page group name or restricted to one mapping. |
  | `getSegments` | Retrieves the saved segments (ID and name) of a project, optionally filtered by name. |
  | `getDefinedEvents` | Searches user-defined named events by name, by interaction type, or both. The interaction types are `pageview`, `session`, `formInteraction`, `clickAndTouch`, and `customAndIntegration`. |
  | `getTransactionEvent` | Retrieves the transaction event of an e-commerce project. Used for overall e-commerce performance, revenue, or conversion when you don't name a specific event. |
  | `getDefinedProperties` | Searches user-defined named properties scoped to users, optionally by name. |
  | `getCustomProperties` | Lists the raw user-level custom property names sent with your tracked data. Returns up to 100 names and the total count. Used when no defined property matches. It takes a single data source project ID. |

  The page group filter in `getPageGroups` matches page group names only, not mapping names. To get the page groups of one mapping, the agent first resolves the mapping ID with `getMappings`.

## Get recommendations

These tools find the objects that are most relevant in a project. They rank mappings, page groups, segments, and goals by engagement and usage frequency in Contentsquare, such as how often they're viewed or used in analyses.

* Experience Analytics

  | Tool | Description |
  | - | - |
  | `recommendMappings` | Recommends mappings based on how often they're viewed and used in analyses. |
  | `recommendPageGroups` | Recommends page groups based on how often they're viewed and used in analyses. |
  | `recommendSegments` | Recommends segments based on how often they're viewed and used in analyses. If a project has no recent engagement data, it returns the most recently updated segments. |
  | `recommendGoals` | Recommends goals based on how often they're viewed and used in analyses. |

* Experience Platform

  Recommendation tools aren't available in Experience Platform. To find objects, see [Discover your project and objects](https://docs.contentsquare.com/en/mcp/tools/#discover-your-project-and-objects).

## Compute metrics

These tools return aggregated numbers and breakdowns, either for the whole site or for a page group.

* Experience Analytics

  | Tool | Description |
  | - | - |
  | `computeSiteMetrics` | Computes aggregated metrics across the entire site. It can group results by session-level dimensions such as device, browser, country, city, language, and day, and apply a goal or a user filter. It can return traffic and engagement metrics (visits, bounce rate, average session time, and average pageviews), conversion rate and count for a goal, e-commerce metrics (revenue, average cart, transaction rate, and transaction count), and quality of experience metrics (visits with errors and frustration score). |
  | `computePageGroupMetrics` | Computes metrics for one page group, to get an overview of the performance of part of your site. It can group results by dimensions such as page path, path prefix, device, browser, country, and day. It can return traffic and engagement metrics (views, visits, unique visits, unique users, bounce rate, exit rate, landing rate, and activity rate), page behavior metrics (scroll rate, interaction time, elapsed time, loading time, page height, and fold height), conversion rate for a goal, average session lifetime revenue for e-commerce projects, and quality of experience metrics (visits with errors and frustration score). |

* Experience Platform

  | Tool | Description |
  | - | - |
  | `listMetrics` | Lists the metrics your project can compute at site or page group scope, with each metric's name, definition, unit, and whether a higher value is better. The agent calls it before `computeMetrics`. |
  | `computeMetrics` | Computes aggregated metrics, either site-wide or per page group. It can group results by time and by device, browser, and geography dimensions, filter by device, and apply a segment. It can return traffic and engagement metrics (visits, bounce rate, average session time, average pageviews, and unique users), e-commerce metrics (revenue, average cart, and transaction rate), conversion rate and count for up to 10 events used as conversion goals, Core Web Vitals (Largest Contentful Paint, Cumulative Layout Shift, and Interaction to Next Paint), and page-level behavior (exit rate and scroll rate). The metrics available depend on your project. |

## Analyze behavior and conversion

These tools show how visitors move through your site and where they convert.

* Experience Analytics

  | Tool | Description |
  | - | - |
  | `computeFunnel` | Measures drop-offs and conversions across an ordered sequence of 2 to 32 page groups of a mapping. Analyzes conversion rates, drop-off points, and time to completion, by sessions or by users. |
  | `computeImpact` | Compares conversion performance between groups of users for a conversion goal. Returns conversion rate, bounce rate, session time, pageviews, and revenue impact, with statistical significance testing. You can compare a different date range, device type, or user filter. |
  | `computeJourney` | Shows how visitors navigate your site as a hierarchical tree of common paths and drop-off points, for up to 7 steps. A forward journey starts from landing pages, or from a page group you choose. A reverse journey starts from exit pages, or from a page group you choose. |
  | `computePageComparison` | Compares 2 to 10 page groups of a mapping side by side: views, bounce rate, exit rate, scroll rate, time spent, activity level, load times, and conversion rate for a goal. |

* Experience Platform

  | Tool | Description |
  | - | - |
  | `analyzeFunnel` | Analyzes a conversion funnel for an ordered sequence of at least two events. Shows how many visitors reach each step and the conversion between steps. |
  | `analyzeImpact` | Analyzes goal performance: how visitors convert on a conversion event. For a transaction event, it also returns e-commerce metrics such as revenue and average cart. |
  | `analyzeJourney` | Analyzes the navigation flow around a page group of a mapping. In the `forward` direction, it shows where visitors go next. In the `reverse` direction, it shows where they came from. |
  | `comparePages` | Compares the metrics of 2 to 5 page groups of a mapping side by side. |

## Investigate errors

These tools find the errors that affect your visitors and show how they hurt your goals. Each tool answers a different question.

> **Note**
>
> Error investigation is available in Experience Monitoring, which is only available on Enterprise plans or as an add-on to Pro plans.

* Experience Analytics

  These tools analyze either the whole site or one page group, and can filter by error type: JavaScript, API, custom, crash, or Flutter.

  | Tool | Description |
  | - | - |
  | `getErrorExplorer` | Lists errors with their technical and business impact, or returns an overview of error totals and trends. Rows can be errors, pages, page groups, or errors on page groups. It can filter errors by type, HTTP status code, HTTP method, response body or custom attributes, source platform, dismissed status, and free text. In overview mode, it returns the total sessions, sessions with errors, and number of errors with their evolution over the period, plus the top 10 errors and their trends. The date range is limited to 31 days.[1](https://docs.contentsquare.com/en/mcp/tools/#user-content-fn-1) |
  | `getTopErrorsBySessionsWithErrors` | Ranks errors by the number of sessions with errors. This is the main tool for general error questions: error trends, rates, and the most frequent errors. |
  | `getTopErrorsByImpactOnGoal` | Ranks errors by their impact on a conversion goal, to prioritize fixes by business value. Requires a mapping and a goal.[1](https://docs.contentsquare.com/en/mcp/tools/#user-content-fn-1) |
  | `getTopErrorsByMissedOpportunity` | Ranks errors by the revenue they cost, for e-commerce projects. Requires a mapping.[1](https://docs.contentsquare.com/en/mcp/tools/#user-content-fn-1) |
  | `getTopPageGroupsByLostConversions` | Ranks page groups by the conversions lost because of errors. Requires a mapping and a goal.[1](https://docs.contentsquare.com/en/mcp/tools/#user-content-fn-1) |
  | `getTopPagesBySessionsWithErrors` | Shows the pages most affected by errors compared with their traffic, either as page groups or as individual page URLs. Requires a mapping. |

* Experience Platform

  These tools can filter by error type: JavaScript, API, custom, crash, or Flutter. They can also filter by search phrase and dismissed status.

  | Tool | Description |
  | - | - |
  | `summarizeErrors` | Returns a single aggregate summary: total visits, visits impacted by errors, and the number of distinct errors. Works for the whole project or for a mapping and its page groups. |
  | `rankErrorsBySessions` | Ranks errors by the number of sessions where they occurred, across the project or for one page URL or screen. Returns error metrics only: visits with errors, error rate, and errors followed by repeated clicks. It doesn't return business impact. |
  | `rankPagesByErrors` | Ranks individual pages or screens, not page groups, by error metrics. Web results include the scheme, host, path, and query parameters. Mobile results include the screen name. |
  | `analyzePageGroupErrors` | Analyzes errors on the page groups of a mapping. In `ERROR_ON_PAGE_GROUP` mode, it returns the errors that occur on the page groups. When you provide a goal event, it also returns their business impact: the impact on the goal, the lost conversions, and the missed opportunity. In `PAGES` mode, it returns the page groups ranked by error metrics. |

## Send feedback

* Experience Analytics

  Feedback tools aren't available in Experience Analytics.

* Experience Platform

  | Tool | Description |
  | - | - |
  | `submitMcpFeedback` | Submits feedback about your MCP server experience: the project ID, a rating from 1 to 5, and optionally a comment and the name of the tool concerned. |

## Footnotes

1. Business impact results include only statistically significant errors by default, and goal ID `-1` stands for the e-commerce goal. [↩](https://docs.contentsquare.com/en/mcp/tools/#user-content-fnref-1) [↩2](https://docs.contentsquare.com/en/mcp/tools/#user-content-fnref-1-2) [↩3](https://docs.contentsquare.com/en/mcp/tools/#user-content-fnref-1-3) [↩4](https://docs.contentsquare.com/en/mcp/tools/#user-content-fnref-1-4)

```json
{"@context":"https://schema.org","@type":"TechArticle","headline":"MCP tools","description":"See the Contentsquare MCP server tools your AI agent uses to find projects, compute metrics, analyze funnels and journeys, and investigate errors.","url":"https://docs.contentsquare.com/en/mcp/tools/","inLanguage":"en","dateModified":"2026-12-02T09:44:26+01:00","publisher":{"@type":"Organization","name":"Contentsquare","url":"https://www.contentsquare.com/"},"isPartOf":{"@type":"WebSite","@id":"https://docs.contentsquare.com/#website","name":"Contentsquare Technical Documentation","url":"https://docs.contentsquare.com/"}}
```