> For the complete documentation index, see [llms.txt](https://docs.amply.tools/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.amply.tools/reference/mcp-tools.md).

# MCP tools

What an AI assistant can do in your Amply account over MCP — connecting, the permissions you grant, and every tool.

Amply hosts an MCP server, so an AI assistant can work in your Amply account on your behalf: set an app up, author campaigns, check analytics, and manage price changes. This page lists what it can do. For why you would use it, see [AI-assisted integration](https://docs.amply.tools/getting-started/ai-assisted-integration.md).

There is nothing to install — you point your assistant at Amply.

## Connecting

{% stepper %}
{% step %}

### Add the server

```bash
claude mcp add --transport http amply https://api.amply.tools/mcp
```

Any client that supports a remote MCP server over HTTP takes the same URL.
{% endstep %}

{% step %}

### Authenticate

Run `/mcp` in Claude Code and choose to authenticate. A browser window opens and you sign in to Amply if you are not already signed in.
{% endstep %}

{% step %}

### Approve what it may do

The consent screen lists everything your client asked for and names the host that will receive the access. Read the list, then allow or decline — it is one decision, not a permission-by-permission choice. The table below explains each line.
{% endstep %}
{% endstepper %}

You never give the assistant your password. Your client holds a short-lived access token, and revoking the connection in Amply cuts that token off immediately. The one thing revoking does not undo is an SDK API key the assistant obtained while connected — a key is a credential in its own right and keeps working until you delete it.

{% hint style="info" %}
You may see two notices, and both are expected. One says the result comes back on `localhost`, so only continue if you started the connection yourself. The other says your client registered itself with Amply rather than being pre-approved, so its name and logo are not verified — most MCP clients work this way.

The box just above the buttons always names the host that will receive the access. A client can copy a name and a logo but not that host, so it is the line worth reading.
{% endhint %}

## What you approve

You can revoke the whole connection at any time in the Amply admin, under **Profile settings → Connected apps**.

| Permission                            | What it allows                                                                                                                                                                                                                                                                                             |
| ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| View projects and campaigns           | Read-only access to your projects and the campaigns in them.                                                                                                                                                                                                                                               |
| Create draft campaigns                | Drafts only, plus designing the mini-app screens a campaign shows. This permission on its own can never launch a live campaign.                                                                                                                                                                            |
| View analytics                        | Active users for your apps, impressions and resolutions for your campaigns.                                                                                                                                                                                                                                |
| Start and stop campaigns              | Decides whether real users see a campaign.                                                                                                                                                                                                                                                                 |
| View prices                           | Your product prices and any pending price changes.                                                                                                                                                                                                                                                         |
| Change draft prices                   | Create, change and delete draft price changes and your organization's custom price indexes. Drafts change nothing on their own — sending one to the stores needs the permission below.                                                                                                                     |
| Send price changes to the stores      | Sends price changes to the App Store and Google Play, and cancels or retries ones already sent. Prices really change for customers, and this cannot be undone.                                                                                                                                             |
| Register apps and read their API keys | Creates projects and applications and reads or creates their SDK API keys. Only an organization administrator can use the creating half. **An API key keeps working after you disconnect the assistant** — revoking the connection does not revoke a key, so remove a key you no longer want in the admin. |

## Setting an app up

These are what let an assistant integrate the SDK without you copying values out of the admin.

| Tool                 | What it does                                                                                                                                                  |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_create`     | Create a project. Refused if your plan's limit on projects is reached.                                                                                        |
| `applications_list`  | List the applications in a project, with their ids.                                                                                                           |
| `application_create` | Register an application and get its `appId` **and its first API key** in one step. Takes the bundle id — which must match the app exactly — and the platform. |
| `api_keys_list`      | Read an application's API keys, secrets included.                                                                                                             |
| `api_key_create`     | Create an additional key pair for an application. The existing keys keep working.                                                                             |

{% hint style="info" %}
**iOS and Android are two separate applications**, each with its own key pair, even when they share a bundle id. An app that ships on both stores needs both registered, and the SDK initialised with the pair matching the platform it is running on.

Registering the same bundle id and platform twice is refused rather than duplicated, so an assistant re-running a set-up finds the existing application instead of creating a second one.
{% endhint %}

{% hint style="warning" %}
A brand-new key can report events straight away, but campaigns only start reaching it once the first campaign in that project is activated. An empty campaign list on a fresh app is expected, not a broken key.
{% endhint %}

## Projects and campaigns

| Tool                 | What it does                                                                                                                                                                                                                                                                                                                                          |
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projects_list`      | List the projects you have access to.                                                                                                                                                                                                                                                                                                                 |
| `campaigns_list`     | List campaigns in a project. Takes the project, an optional name search, and a result limit.                                                                                                                                                                                                                                                          |
| `campaign_get`       | Read one campaign in full — type, state, triggering, targeting and content.                                                                                                                                                                                                                                                                           |
| `campaign_create`    | Create a campaign. Always a draft, never live. Needs a project, a name, a type and a triggering rule; targeting and content are optional.                                                                                                                                                                                                             |
| `campaign_update`    | Change a campaign. Replaces it in full and returns it to draft, so a live campaign is off the air until it is started again.                                                                                                                                                                                                                          |
| `campaign_activate`  | Publish a draft so real users can receive it. Refused if your plan's limit on active campaigns is reached.                                                                                                                                                                                                                                            |
| `campaign_stop`      | Stop a live campaign. As in the admin, a stopped campaign does not go back to draft.                                                                                                                                                                                                                                                                  |
| `builtin_bundle_get` | For one application: which [built-in campaigns](https://docs.amply.tools/developer-guide/built-in-campaigns.md) the next bundle will hold, which campaigns marked built-in are missing from it and why (not active, running an A/B test, can no longer be delivered, or not published yet), and the exact command your developer runs to bundle them. |

`campaign_create` and `campaign_update` take `built_in` to mark a campaign as built-in, and `campaign_get` and `campaigns_list` report it. Left out on `campaign_update`, it stays as it is.

There is also `amply_ping`, a connection check that needs no permission at all.

Triggering and targeting have their own vocabulary — repeat modes, frequency limits, comparison operators, [OR groups](https://docs.amply.tools/user-guide/targeting-an-audience.md#or-groups). Your assistant can read it from Amply directly: the server publishes a campaign targeting reference with worked examples, so you do not have to describe the format to it.

A campaign's OR groups are safe from an assistant that doesn't know about them. When it edits a campaign that has two or more groups, Amply refuses any change that doesn't spell the groups out, so they can't be merged into one or lost by accident.

## Mini-apps

A mini-app is the screen a campaign shows inside your app — a bottom sheet, a centred card, a story or a full-screen flow. Your assistant can build one from a plain description, the same thing you would build in the admin's builder.

| Tool                    | What it does                                                                                                                                                                                                                                                              |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `mini_app_list`         | List the mini-apps in a project, with the latest published version of each.                                                                                                                                                                                               |
| `mini_app_get`          | Read one mini-app in full, including ones built by hand in the admin, with a link that opens it in the builder.                                                                                                                                                           |
| `mini_app_create`       | Build a mini-app from a description of its screens. Saved as a draft nobody sees. A description with mistakes is refused with every problem listed, so the assistant can correct it.                                                                                      |
| `mini_app_update`       | Change a mini-app. Refused if someone saved it in the admin after the assistant read it, so nobody's edits are overwritten.                                                                                                                                               |
| `mini_app_publish`      | Freeze the current draft into a version a campaign can show. Nobody sees it until a campaign with that version is started.                                                                                                                                                |
| `mini_app_image_import` | Copy a picture from a public web address into your project so a mini-app can use it.                                                                                                                                                                                      |
| `mini_app_image_upload` | Upload a picture from the assistant's own computer — for example one it just generated. The assistant gets a one-time upload link that works for 10 minutes, sends the file to it, and can then use the picture in a mini-app as an image, a button icon or a background. |

A campaign keeps showing the exact version it was given. After changing a mini-app, publish it again and point the campaign at the new version. Your assistant can read the full list of components and styles from Amply directly, so you only need to describe what you want. For how this works together with the Builder, see [Building with an AI assistant](https://docs.amply.tools/mini-apps/building-with-ai.md).

{% hint style="info" %}
Ask your assistant for the builder link and look at the result before starting a campaign. Mini-apps reach devices on Amply SDK 0.12.0 and later.
{% endhint %}

## Analytics

| Tool                      | What it does                                                     |
| ------------------------- | ---------------------------------------------------------------- |
| `statistics_active_users` | Daily or monthly active users for a project, over a date range.  |
| `campaign_statistics`     | Impressions and resolutions for one campaign, over a date range. |

Date ranges are inclusive and may span at most a year.

## Price management

These mirror the [price management](https://docs.amply.tools/price-management/price-management.md) screens.

{% hint style="info" %}
Price management has to be on your plan, and the price-index tools need it as a separate addition. Without it the tools still appear in your client's list and refuse when called — what your client can see is decided by the permissions you granted, not by your plan.
{% endhint %}

| Tool                                                                                   | What it does                                                                                                                                         |
| -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| `price_products_list`                                                                  | Products for an application, and what each can be priced by: Google Play base plans and offer phases, App Store promotional and introductory offers. |
| `price_product_prices`                                                                 | Current prices for one product, base plan, or offer.                                                                                                 |
| `price_calculate`                                                                      | Preview what a price change would produce, storing nothing. Name the base plan or offer when a product has several.                                  |
| `price_change_save`                                                                    | Save a price change as a draft batch.                                                                                                                |
| `price_entry_update`                                                                   | Change or exclude one territory inside a draft batch.                                                                                                |
| `price_batches_list`, `price_batch_get`                                                | Find and inspect price-change batches.                                                                                                               |
| `price_batch_delete`                                                                   | Delete a draft batch.                                                                                                                                |
| `price_indexes_list`, `price_index_create`, `price_index_update`, `price_index_delete` | Manage your custom [price indexes](https://docs.amply.tools/price-management/price-indexes.md).                                                      |
| `price_territories_list`                                                               | The territories available for an application.                                                                                                        |
| `price_batch_activate`                                                                 | Send a batch to the App Store and Google Play.                                                                                                       |
| `price_batch_cancel`, `price_batch_retry`, `price_batch_resume`                        | Control a batch that has already been sent.                                                                                                          |

{% hint style="warning" %}
Anything that dispatches to the stores asks the assistant to confirm how many territories it is about to change. A call that has the count wrong fails instead of going through.
{% endhint %}

## What you still do in the admin

Some things are not available over MCP yet. If an assistant tells you it cannot do one of these, it is right rather than broken.

* **Deleting or cloning a campaign or a mini-app.** A draft created by mistake stays in your list until you remove it in the admin.

## Related

* [AI-assisted integration](https://docs.amply.tools/getting-started/ai-assisted-integration.md) — what this is for and how it fits an integration
* [Events](https://docs.amply.tools/reference/events.md) — the system events campaigns can trigger on
* [API reference](https://docs.amply.tools/reference/api-reference.md) — the underlying REST contract
