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

# Plugin discovery

> Track how often ChatGPT, Muse, and Grok suggest your product's plugin, and set which plugin each one tracks, from the TPC CLI.

# Plugin discovery

`tpc plugin` reads how often an AI assistant discovers your product's plugin and sets which plugin it tracks. TPC measures this by running the prompts in the product's plugin discovery lane, which you manage with [`tpc prompts plugin`](https://docs.promptingcompany.com/cli/commands/prompts).

## Prerequisites

* Your organization needs an Enterprise plan.
* Pass `--scope <org-slug>/<product-slug>`.
* Any signed-in member can read the results. `set` and `clear` need an owner or admin role in the organization.

## Commands

```bash theme={null}
tpc --scope pro-org/my-product plugin summary
tpc --scope pro-org/my-product plugin trend
tpc --scope pro-org/my-product plugin ranking
tpc --scope pro-org/my-product plugin set <plugin-id>
tpc --scope pro-org/my-product plugin clear
```

Every command takes `--engine`: `chatgpt` (the default), `muse`, or `grok`. Every read command accepts `--format json` and prints the API data instead of a table.

## Choose what to track

Each engine tracks its own identifier. Runs for an engine start once the product has one.

| Engine | Identifier | Example |
| - | - | - |
| `chatgpt` | ChatGPT plugin ID | `tpc --scope pro-org/my-product plugin set <plugin-id>` |
| `muse` | Muse connector slug: lowercase letters and digits separated by single underscores | `tpc --scope pro-org/my-product plugin set --engine muse google_calendar` |
| `grok` | Grok plugin ID, or its `x.ai/bot/plugin` link | `tpc --scope pro-org/my-product plugin set --engine grok https://x.ai/bot/plugin/512/linear` |

`set --engine muse` lowercases the slug before TPC checks it. For Grok, TPC reads the numeric ID out of the link. Saving the same identifier again keeps the original opt-in date; a different one restarts it. `clear` stops tracking for the chosen engine:

```bash theme={null}
tpc --scope pro-org/my-product plugin clear --engine grok
```

Without an owner or admin role, `set` and `clear` fail with, for example, `an owner or admin role is required to change the ChatGPT plugin ID`.

## Read the results

A run is one answer to a plugin discovery prompt. What counts as suggested depends on the engine:

| Engine | Suggested run | Extra figures |
| - | - | - |
| ChatGPT | ChatGPT recommended the plugin in its answer. | Search runs, shortlisted runs (the plugin was in the search results ChatGPT considered), average rank in those results, card shown runs (ChatGPT rendered the install card), and the plugins ChatGPT picked instead. |
| Muse | Muse showed the connector's card. | None. Muse has no shortlist. |
| Grok | Grok offered the plugin in its picker or showed its Connect card. A run counts once even if both happened. | Catalog status and when Grok last showed the card. |

### Summary

```bash theme={null}
tpc --scope pro-org/my-product plugin summary
tpc --scope pro-org/my-product plugin summary --engine grok --format json
```

`summary` shows the tracked identifier, when tracking started, the measured and suggested runs, and that engine's extra figures. If the product tracks nothing for the engine, it says so and shows the `set` command to run. In JSON the identifier is `pluginId` for every engine, and an untracked engine returns `optedIn: false`.

Grok's catalog status (`catalogStatus` in JSON) is `offered`, `not_offered`, `not_listed`, or `not_checked`. With `not_offered`, Grok does not list the plugin, so it can't appear in a picker or show a card. With `not_listed` (not in the public plugin catalog) or `not_checked` (not checked yet), TPC can't confirm whether Grok offers it.

### Trend

```bash theme={null}
tpc --scope pro-org/my-product plugin trend
tpc --scope pro-org/my-product plugin trend --engine muse --format json
```

`trend` prints one row per UTC day from the first measured run through today, with that day's measured, shortlisted, and suggested runs and their rolling 30-day sums. Muse and Grok leave out the shortlisted columns. The output is not limited to 30 rows. It is empty when the engine has no tracked identifier or no runs.

### Ranking

```bash theme={null}
tpc --scope pro-org/my-product plugin ranking
tpc --scope pro-org/my-product plugin ranking --engine grok
```

`ranking` lists the 10 plugins (or Muse connectors) suggested in the most runs, with yours marked. Plugins with the same number of suggested runs share a rank. When yours is outside the top 10, it is shown separately below the table (`yours` in JSON).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.