> For the complete documentation index, see [llms.txt](https://docs.crobox.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.crobox.com/technical-documentation/crobox-mcp/crobox-mcp-tool-reference.md). Agents can also search and read this documentation through its [MCP server](https://docs.crobox.com/~gitbook/mcp).

# Crobox MCP tool reference

This reference lists every tool available through the Crobox MCP, with example prompts, the limits that apply, and common error messages. You don't need to name tools in your questions: your assistant picks the right ones for you.

Server URL: `https://app.crobox.com/api/mcp`

## Permissions

Authentication: OAuth 2.1 with Client ID Metadata Documents. Access tokens last one hour and refresh automatically.

| OAuth scope                  | Consent screen label                                                      | Unlocks                                       |
| ---------------------------- | ------------------------------------------------------------------------- | --------------------------------------------- |
| `openid`, `profile`, `email` | Confirm your identity; read your name, profile details, and email address | Signing in as you                             |
| `offline_access`             | Stay connected when you are not using the app                             | Refreshing access without logging in again    |
| `crobox:proposals`           | Draft configuration changes for you to review in Crobox                   | Proposal tools and tools that act immediately |

Read-only tools are available on every connection. All tools also respect your Crobox role.

| Role                        | Read tools and drafting proposals | Applying or rejecting proposals |
| --------------------------- | --------------------------------- | ------------------------------- |
| Viewer                      | Yes                               | No                              |
| Editor, Publisher, or Admin | Yes                               | Yes                             |

## Read-only tools

These tools never change anything in Crobox.

<details>

<summary>Account and containers</summary>

| Tool              | Description                                        | Example prompt                              |
| ----------------- | -------------------------------------------------- | ------------------------------------------- |
| `list_containers` | Lists the containers you can access                | Which Crobox containers can you see?        |
| `list_tags`       | Lists tags defined for a container                 | Which tags do we use in our main container? |
| `list_files`      | Lists images and other files stored in a container | Which images have we uploaded to Crobox?    |

</details>

<details>

<summary>Analytics</summary>

| Tool                      | Description                                       | Example prompt                                         |
| ------------------------- | ------------------------------------------------- | ------------------------------------------------------ |
| `list_metrics`            | Lists available analytics metrics                 | Which metrics can I report on?                         |
| `describe_report_options` | Lists the grouping and filter options for reports | Can I break conversions down by device?                |
| `metric_report`           | Runs an analytics report for one metric           | How did conversion rate develop over the last 30 days? |
| `count_report`            | Counts values for one column over a time range    | How many unique visitors saw a campaign last week?     |
| `list_dashboards`         | Lists saved dashboards                            | Which dashboards do we have?                           |
| `get_dashboard`           | Returns one dashboard with all its widgets        | Summarize what our weekly dashboard is showing.        |

</details>

<details>

<summary>Campaigns</summary>

| Tool                  | Description                                               | Example prompt                                       |
| --------------------- | --------------------------------------------------------- | ---------------------------------------------------- |
| `list_campaigns`      | Lists campaigns with their A/B variants                   | Which campaigns are running right now?               |
| `get_campaign`        | Returns a campaign's messages, configuration, and filters | Show me the messaging in our free shipping campaign. |
| `get_campaign_health` | Returns A/B results against the control group             | Is our urgency campaign beating its control?         |

</details>

<details>

<summary>Product Finder</summary>

| Tool             | Description                                                                                                                           | Example prompt                                             |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| `list_finders`   | Lists Product Finders and their variants                                                                                              | Which Product Finders do we have?                          |
| `get_finder`     | Returns a Product Finder's full configuration                                                                                         | Walk me through the questions in our backpack finder.      |
| `preview_finder` | Returns the products a finder variant recommends for a set of answers, optionally for a visitor in a given country (Visitor Location) | What would the finder recommend for a beginner in Germany? |

</details>

<details>

<summary>Sagent</summary>

| Tool                  | Description                                                         | Example prompt                                                   |
| --------------------- | ------------------------------------------------------------------- | ---------------------------------------------------------------- |
| `list_product_chats`  | Lists Sagent experiences                                            | Which Sagent experiences do we have?                             |
| `get_product_chat`    | Returns a Sagent configuration                                      | What guidance prompts does our Sagent use?                       |
| `product_chat_report` | Returns conversation analytics: sessions, completions, and outcomes | How many Sagent conversations led to a product click last month? |

</details>

<details>

<summary>Product Recommender and Comparison Tool</summary>

| Tool                | Description                                   | Example prompt                                              |
| ------------------- | --------------------------------------------- | ----------------------------------------------------------- |
| `list_recommenders` | Lists Product Recommenders                    | Which Product Recommenders are set up?                      |
| `get_recommender`   | Returns a Product Recommender's configuration | How does our "complete the look" recommender pick products? |
| `list_comparisons`  | Lists Comparison Tools                        | Which Comparison Tools do we have?                          |
| `get_comparison`    | Returns a Comparison Tool's configuration     | Which sections does our laptop comparison show?             |

</details>

<details>

<summary>Product data</summary>

| Tool                      | Description                                          | Example prompt                               |
| ------------------------- | ---------------------------------------------------- | -------------------------------------------- |
| `product_search`          | Searches the product catalog                         | Find waterproof jackets under 150 euros.     |
| `list_product_properties` | Lists every product property in the catalog          | Which product properties do we have?         |
| `get_property_values`     | Returns the values of one or more product properties | Which values do we use for "material"?       |
| `get_data_health`         | Returns product counts and freshness per data source | Is our product data up to date?              |
| `get_feed`                | Returns a feed's import configuration                | How is our product feed mapped?              |
| `get_feed_sample`         | Returns a sample of a feed's latest file             | Does the latest feed file match our mapping? |

</details>

<details>

<summary>Components</summary>

| Tool              | Description                               | Example prompt                            |
| ----------------- | ----------------------------------------- | ----------------------------------------- |
| `list_components` | Lists builder components                  | Which components do we have?              |
| `get_component`   | Returns a component's source and settings | How is our product badge component built? |

</details>

<details>

<summary>Website integration</summary>

| Tool                    | Description                                                                                                                     | Example prompt                                     |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- |
| `get_snippet_config`    | Returns the website integration configuration and version history                                                               | What changed in our last three versions?           |
| `get_snippet_health`    | Checks your tracking implementation against Crobox's event tracking requirements, and flags missing or outdated Crobox packages | Is our tracking set up correctly?                  |
| `get_client_errors`     | Returns JavaScript errors reported from shoppers' browsers, with how often each one occurred and in how many sessions           | Which Crobox errors happened most often this week? |
| `get_runtime_reference` | Returns the reference for how the Crobox snippet behaves on a page                                                              | When does a placeholder render on the page?        |

</details>

<details>

<summary>Crobox Documentation</summary>

| Tool                  | Description                                               | Example prompt                                      |
| --------------------- | --------------------------------------------------------- | --------------------------------------------------- |
| `searchDocumentation` | Searches the Crobox Documentation at docs.crobox.com      | How do I set up Matching Rules in a Product Finder? |
| `getPage`             | Returns the full content of one Crobox Documentation page | Read me the Sagent Deploy page.                     |

These tools read published documentation pages only. When the documentation and your live configuration differ, your assistant goes by what Crobox shows.

</details>

<details>

<summary>Proposals</summary>

| Tool           | Description                                                                | Example prompt                           |
| -------------- | -------------------------------------------------------------------------- | ---------------------------------------- |
| `get_proposal` | Returns a proposal's status: open, applying, applied, partial, or rejected | Has my finder proposal been applied yet? |

</details>

{% hint style="info" %}
The Crobox MCP also includes a `diagnose_integration_issue` prompt that guides your assistant through troubleshooting a website integration problem.
{% endhint %}

## Proposal tools

These tools draft a proposal. Nothing changes until a person applies it in Crobox. See [Review and apply change proposals](https://docs.crobox.com/technical-documentation/crobox-mcp.md#review-and-apply-change-proposals).

| Tool                              | Description                                                                                      | After apply                          | Example prompt                                        |
| --------------------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------ | ----------------------------------------------------- |
| `propose_create_finder`           | New Product Finder                                                                               | Draft                                | Draft a three-question finder for our running shoes.  |
| `propose_update_finder`           | Change a Product Finder                                                                          | Draft                                | Switch the pack-fit question to a grid layout.        |
| `propose_create_campaign`         | New campaign                                                                                     | Draft                                | Draft a low-stock campaign for our bestsellers.       |
| `propose_update_campaign`         | Change a campaign                                                                                | Draft                                | Make the free shipping message shorter.               |
| `propose_create_chat`             | New Sagent experience                                                                            | Draft (feed export columns are live) | Set up a Sagent for our outdoor range.                |
| `propose_update_chat`             | Change a Sagent experience                                                                       | Draft (feed export columns are live) | Add a guidance prompt about sizing.                   |
| `propose_create_component`        | New builder component                                                                            | Draft                                | Create a badge component for new arrivals.            |
| `propose_update_component`        | Change a builder component                                                                       | Draft                                | Update the badge title text.                          |
| `propose_create_finder_component` | New finder component                                                                             | Draft                                | Create a slider answer component for budget.          |
| `propose_update_finder_component` | Change a finder component                                                                        | Draft                                | Increase the image size in our answer card.           |
| `propose_update_snippet_config`   | Change website integration triggers, placeholders, or actions, or add or update a Crobox package | Draft                                | Fix the selector for the product listing placeholder. |
| `propose_update_recommender`      | Change a Product Recommender                                                                     | Draft                                | Show six products instead of four.                    |
| `propose_update_comparison`       | Change a Comparison Tool                                                                         | Draft                                | Add a weight row to our comparison.                   |
| `propose_create_product_property` | New product property                                                                             | Live                                 | Add a "waterproof" property.                          |
| `propose_update_product_property` | Change a product property                                                                        | Live                                 | Make "color" facetable.                               |
| `propose_update_feed`             | Change feed mappings or CSV settings                                                             | Live, from the next feed run         | Map the feed's "material" column to our property.     |

### Proposal inputs

| Parameter   | Type   | Required | Description                                         |
| ----------- | ------ | -------- | --------------------------------------------------- |
| `title`     | string | Yes      | Summary shown in Crobox, 3 to 140 characters        |
| `rationale` | string | Yes      | Why the change is suggested, 10 to 4,000 characters |
| `ticket`    | string | No       | Reference to a related ticket, up to 500 characters |

Each proposal can contain up to 200 changes, with a maximum size of 256 KB.

### What proposals can change

| Experience or setting            | Editable                                                                                           |
| -------------------------------- | -------------------------------------------------------------------------------------------------- |
| Website integration triggers     | Selector, delay, and filters                                                                       |
| Website integration placeholders | Selector, mode, page types, element, class name, and available slots                               |
| Website integration actions      | Enabled state, priority, and triggers                                                              |
| Crobox packages                  | Add a package, or update one to its latest version                                                 |
| Campaign                         | Filter, component, component configuration, and messages                                           |
| Product Finder                   | Pages, questions, answers, Matching Rules and their benefits, setup, top bar, and theme            |
| Product Finder activation        | Enabled state, campaign filter, component configuration, and messages                              |
| Builder component                | Component tree, title, and description                                                             |
| Sagent                           | Texts, prompting, general and design settings, guidance, guidance prompts, activation, and locales |
| Sagent feed export               | Columns                                                                                            |
| Product Recommender              | Name, limit, and slots                                                                             |
| Comparison Tool                  | Name, limit, filter, texts, and sections                                                           |
| Product property                 | Name, value type, multi-value, facetable, and local settings                                       |
| Product feed                     | Mappings and CSV delimiter and header settings                                                     |

Proposals can't change:

* A feed's source or credentials
* Sagent's tools, knowledge settings, or AI model
* System or reserved product properties
* Archived experiences
* Packaged finder components

Changes to theme, CSS, JavaScript, or markup beyond plain text formatting require developer mode to apply.

## Tools that act immediately

These tools take effect as soon as your assistant runs them. None of them change what shoppers see on your site.

### `upload_file`

Uploads images to a container's files.

Example prompt: *Upload this logo to our Crobox files as brand-logo.png.*

| Limit          | Value                                                                                       |
| -------------- | ------------------------------------------------------------------------------------------- |
| Formats        | PNG, JPEG, WebP, GIF, and SVG                                                               |
| File size      | 5 MB per file                                                                               |
| Files per call | 1 to 20, up to 20 MB in total                                                               |
| File names     | Lowercase letters, numbers, dots, hyphens, and underscores, ending in a supported extension |

Images can be uploaded from your conversation or from a public `https` URL. A file name that already exists is refused, so choose a new name. Files can't be overwritten or deleted through the Crobox MCP.

### `create_preview_link`

Creates a shareable link to the current draft of a Product Finder or Sagent experience.

Example prompt: *Create a preview link for the draft backpack finder so I can share it with the client.*

| Setting  | Value                                   |
| -------- | --------------------------------------- |
| Lifetime | 1 to 30 days, default 21                |
| Access   | Anyone with the link, no login required |

{% hint style="warning" %}
Anyone who has a preview link can open the draft until the link expires. Share links carefully, and revoke them when you're done in **Organization › Preview links**.
{% endhint %}

### `run_product_chat`

Runs a scripted test conversation with the current draft of a Sagent experience.

Example prompt: *Test our draft Sagent with a shopper looking for a rain jacket for city cycling.*

| Limit          | Value                     |
| -------------- | ------------------------- |
| Turns per run  | Up to eight               |
| Message length | 1,000 characters per turn |

Test conversations use Sagent's live AI model, just like a real shopper conversation. They're stored as preview conversations and excluded from Sagent reports and analytics by default.

## Usage limits

| Tool                                       | Limit per user |
| ------------------------------------------ | -------------- |
| Proposal tools and `upload_file`, combined | 30 per hour    |
| `create_preview_link`                      | 30 per hour    |
| `run_product_chat`                         | 20 per hour    |
| Read-only tools                            | No limit       |

### Default ranges and page sizes

| Tool                            | Default                       | Maximum                      |
| ------------------------------- | ----------------------------- | ---------------------------- |
| `metric_report`, `count_report` | Last 30 days, excluding today | Not limited                  |
| `product_search`                | 20 results                    | 100                          |
| `preview_finder`                | 10 products                   | 50                           |
| `get_property_values`           | 100 values per property       | 500, for up to 20 properties |
| `list_files`                    | 100 files                     | 500                          |
| `get_client_errors`             | 1 day, 100 errors             | 7 days, 500 errors           |
| `product_chat_report`           | 30 days, 25 conversations     | 92 days, 200 conversations   |
| `get_snippet_health`            | 7 days                        | 30 days                      |
| `get_campaign_health`           | 14 days                       | 90 days                      |

## Error handling

| Message                                            | Cause                                                      | Solution                                                              |
| -------------------------------------------------- | ---------------------------------------------------------- | --------------------------------------------------------------------- |
| `No access to container X`                         | Your login can't access this container                     | Check your access in Crobox                                           |
| `<tool> is limited to N calls per hour`            | Usage limit reached                                        | Wait and try again later                                              |
| `Refused: op N: … cannot be changed by a proposal` | The proposal tries to change a setting that isn't editable | Make this change directly in Crobox                                   |
| `Refused: op N: …` with a current value            | The setting changed since your assistant last read it      | Ask your assistant to read the latest configuration and propose again |
| `Input validation error: …`                        | A tool received invalid input                              | Your assistant usually corrects and retries automatically             |
| `This proposal is no longer open`                  | The proposal expired, was already applied, or was rejected | Ask your assistant for a new proposal                                 |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.crobox.com/technical-documentation/crobox-mcp/crobox-mcp-tool-reference.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
