# Connect your agent

Your agent drafts, tests and reads your newsletters. A person on your team schedules every newsletter.

Web page: https://acorndispatch.com/agents

Connector address: `https://mcp.acorndispatch.com`

## How do agents use it?

A marketer works with an agent in chat. A developer works with a coding agent in the repo.

### Marketer

- Your agent: the marketer attaches `spring-launch.html` and asks "Create a template using this email design". The agent answers "Done. Spring launch is in your Templates."
- Connector, then AcornDispatch (your workspace) saves it.
- Templates: "Spring launch" (new), alias `spring_launch`, field `first_name`.

*Your agent builds the template. You check it before anything is sent. (Coming soon)*

### Developer

- Coding agent in `cutwren/app`: the prompt "Implement sending a welcome email when a new user signs up"; it writes `src/auth/sign-up.ts`, where `onSignUp(user)` calls the email API with `From`, `To`, `TemplateAlias: 'welcome'` and `TemplateModel`.
- API call: `POST /api/v1/email`; AcornDispatch delivers it.
- Inbox: "Welcome to Cutwren, Maya" from Cutwren, with the button "Open your first project".

*Your coding agent reads the Markdown docs, so it writes the call right the first time.*

## Which agents work with it?

- Claude on claude.ai: Add a custom connector with the address.
- Claude Code: `claude mcp add --transport http acorndispatch https://mcp.acorndispatch.com`
- Other MCP clients: Use an API key as the bearer token.

## What can the tools do?

| Tool | What it does | Changes data |
|---|---|---|
| `list_mailings` | Lists newsletters, newest first | No |
| `get_mailing` | Reads one newsletter, its versions and test settings | No |
| `create_mailing_draft` | Starts a draft: subject, HTML, audience, sender, topic | Yes |
| `update_mailing_draft` | Changes a draft | Yes |
| `add_mailing_variant` | Adds a version to test, up to 8 in all | Yes |
| `update_mailing_variant` | Changes one version | Yes |
| `remove_mailing_variant` | Removes a version | Yes |
| `set_ab_test` | Sets the test group, the winning measure and the wait | Yes |
| `upload_image` | Stores a PNG, JPEG, GIF or WebP image up to 5 MB | Yes |
| `send_test` | Sends a test to up to 10 team addresses | Yes |
| `get_mailing_report` | Reads results and test results | No |
| `get_sending_health` | Reads bounce and spam report rates | No |
| `list_audiences` | Lists audiences with their counts | No |
| `prepare_schedule` | Checks a send time and returns a review link | No send |
| `rehost_images` | Copies outside images into your assets library | Yes |
| Automation tools | Create, change and start automated emails | (Coming soon) |
| Audience tools | Create and change audiences | (Coming soon) |
| Template tools | Create and change templates | (Coming soon) |

## What can’t it do?

- Schedule or send a newsletter: a person does it
- Pick a test winner
- Send app email: use the API.

## For your agent

- https://acorndispatch.com/llms.txt
- https://mcp.acorndispatch.com
- https://api.acorndispatch.com/api/v1
