create_connected_site
Connect a website to Mailchimp and generate a tracking script to enable site tracking and pop-up forms on a managed domain.
Instructions
Connect a website to Mailchimp, generating a tracking script for that domain.
Use to enable site tracking and pop-up forms on a domain you control. After creation, install the returned script, then call verify_connected_site_script to confirm installation. Use list_connected_sites to check existing sites first.
Args: foreign_id: A unique identifier of your choosing for this site (e.g. 'my-store'). domain: The website domain to connect (e.g. 'www.example.com').
Returns: JSON with id, foreign_id, domain, site_script (object with url and fragment), status, created_at, updated_at.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"foreign_id": "<foreign_id>",
"domain": "<domain>"
},
"name": "create_connected_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | ||
| account | No | ||
| foreign_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |