MetorialDocs

Set up Campaign Cleaner in Metorial for AI agents

Share Campaign Cleaner with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 9 tools (6 read-only).

To give your team Campaign Cleaner in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Campaign Cleaner integration in a Metorial portal, and each person connects with an API key. Agents can analyze, clean, and optimize HTML email campaigns to improve deliverability and avoid spam filters. The integration has 9 tools, 6 read-only, 2 write and 1 destructive, plus 2 triggers.

What you'll learn

  • How an admin shares Campaign Cleaner in a portal and how each person connects
  • What Campaign Cleaner asks for when you connect, and where to find it
  • How to keep the 6 read-only tools and reject the other 3

Before you start

Sign-in method

MethodTypeWhat a person provides
API KeyAPI tokenapiKey

API Key

To connect, a person enters:

  • apiKey: Your Campaign Cleaner API key. Found under API Management > API Keys in the Campaign Cleaner dashboard.

Admin: share Campaign Cleaner in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Campaign Cleaner. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Campaign Cleaner.

Choose who gets it

Add the access groups that should see Campaign Cleaner. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Campaign Cleaner integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search "campaign cleaner"

Employee: connect Campaign Cleaner

In the portal

Open Campaign Cleaner in the catalog

Sign in to your portal and open Campaign Cleaner. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API key (apiKey).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search "campaign cleaner"
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your Campaign Cleaner connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list "campaign cleaner"
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 6 read-only tools, such as get_credits and get_campaign, and lose the 2 write tools, such as clean_campaign or create_inbox_test, and the destructive tool delete_campaign.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list "campaign cleaner"
metorial tools <integration-id>
metorial call <integration-id> list_campaigns -d '{}'

metorial tools lists the 9 tools, minus any you rejected. list_campaigns takes no input. It retrieves a list of all campaigns in your Campaign Cleaner account with their current processing status.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (6)

  • get_campaign_status: Check the processing status of a specific campaign. Needs campaignId.
  • get_campaign_pdf: Download the campaign analysis as a PDF report for saving or sharing. Needs campaignId.
  • get_credits: Check the number of available credits in your Campaign Cleaner account.
  • get_campaign: Retrieve the cleaned HTML and full analysis results for a processed campaign. Needs campaignId.
  • list_campaigns: Retrieve a list of all campaigns in your Campaign Cleaner account with their current processing status.
  • get_inbox_test_results: Retrieve inbox placement results for a test created with Create Inbox Test.

Write tools (2)

  • create_inbox_test: Create an inbox placement test and receive the seed email addresses to send your campaign to.
  • clean_campaign: Submit an HTML email campaign for automated cleaning and optimization. Needs campaignHtml and campaignName.

Destructive tools (1)

  • delete_campaign: Permanently delete a saved campaign from your Campaign Cleaner account. Needs campaignId.

Triggers

Campaign Cleaner has 2 triggers, which fire on events in Campaign Cleaner:

  • inbound_webhook
  • campaign_completed: Triggers when a campaign finishes processing and its results become available.

Next steps