---
title: "Connect your AI agent"
description: "Give an AI agent Goomzo's tools over MCP, with no code: connect it by signing in, or with an API key. It finds customers, reads conversations, records what happened, and sends."
url: "https://docs.goomzo.africa/docs/developers/agents/mcp"
docs_index: /llms.txt
lastUpdated: 2026-11-21
section: "AI agents"
related:
  - /docs/developers/agents
  - /docs/developers/agents/customers
---

> For an index of all documentation, see [/llms.txt](https://docs.goomzo.africa/llms.txt). Any page is also available as Markdown by adding .md to its URL.

# Connect your AI agent

> Give an AI agent Goomzo's tools over MCP, with no code: connect it by signing in, or with an API key. It finds customers, reads conversations, records what happened, and sends.

Goomzo has an MCP server (Model Context Protocol), the way AI agents are given tools. Connect an agent to it and it can
look a customer up, read their conversation, record a purchase, send a message or a template, and
see how a broadcast went, with no code written against the API. The server is a thin layer over the
[API](https://docs.goomzo.africa/docs/developers?utm_source=llms&utm_medium=ai): an agent can do nothing a key could not already do with curl, and everything it does shows
in the business's activity as done by that agent.

## Connect by signing in

In Claude, ChatGPT or any client that supports MCP sign-in, add a connector or custom server with this address:

```text
https://mcp.goomzo.africa/mcp
```

The app opens Goomzo. Sign in, check the business, and choose what the agent may do: viewing everything and sending
messages are ticked. Sending broadcasts, managing webhooks, renaming or adding businesses, and seeing or managing the
team and the activity log are not: tick them only for an agent that needs them. Set its **daily send limit** (below),
then select **Allow**.

- Only an owner or admin can connect an agent, and it stops working if that person stops being one.
- The agent never gets more than what was ticked, and can never delete customers or change segments.
- It acts as the person who connected it: it can't remove that person, change their role, or rename another business.
- It takes instructions only from that person: text in customers' messages, emails or web pages is never an
  instruction to invite someone, add a webhook or send.
- Connecting the same app again replaces the earlier connection.
- **Settings → Connected apps** lists every connected agent, who connected it and when it was last used. Disconnect
  one there and it loses access at once.

## Connect with an API key

For Claude Code, Cursor, a custom agent, or anything else that sends its own header:

1. In Goomzo, open **Settings → API keys** and make a key for the agent. Choose its permissions: a support agent
   needs **View customers**, **View messages** and **Send messages**; a reporting agent only the view ones. Give it a
   **daily send limit** (below).
2. Add the server to the agent, with the key's secret as the bearer token:

```text
https://mcp.goomzo.africa/mcp
Authorization: Bearer gzk_…
```

In Claude Code:

```bash
claude mcp add --transport http goomzo https://mcp.goomzo.africa/mcp --header "Authorization: Bearer gzk_…"
```

In Cursor, or any client with an `mcp.json`:

```json
{
  "mcpServers": {
    "goomzo": {
      "url": "https://mcp.goomzo.africa/mcp",
      "headers": { "Authorization": "Bearer gzk_…" }
    }
  }
}
```

A custom agent uses any MCP client library with the streamable HTTP transport and that header. A sandbox key works
the same way: its sends reach no one and cost nothing.

The server keeps nothing between requests and holds no keys: every request carries the agent's own key or token,
which it passes to the API unchanged.

## Tools

The agent sees only the tools its permissions allow. `whoami`, `about_goomzo` and `developer_guide` are always there.
`organization.manage`, `team.read`, `team.manage` and `audit.read` act as the person who connected the agent, so only
an agent connected by signing in can have them, never an API key.

On connecting, the server tells the agent what Goomzo is and how to work with the business's records: use them as
evidence, never invent activity, and don't take a sent message as delivered. `about_goomzo` (also the resource
`goomzo://guide`) gives the fuller guide, written for what that connection may do, so a read-only agent is never
told it can send.

| Tool                                                               | Does                                                                                                | Permission         |
| ------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------- | ------------------ |
| `whoami`                                                           | The business, the key's permissions, what its daily send limit leaves; the balance and plan if allowed | none               |
| `about_goomzo`                                                     | How Goomzo works, its definitions, each channel's rules, and what this connection can do               | none               |
| `find_customers`, `get_customer`                                   | Search by name, phone, email or detail; one customer with their segments and recent activity        | `customers.read`   |
| `save_customer`                                                    | Add a customer, or change one; put them in segments by name. Never merges or deletes                | `customers.write`  |
| `list_views`                                                       | The saved views (queries over customers); `find_customers` with a `viewId` lists who one matches    | `customers.read`   |
| `save_view`                                                        | Save a view for the team, or change one. Never deletes                                              | `customers.write`  |
| `record_activity`                                                  | Record what a customer did: a purchase, a visit, a payment                                          | `activity.write`   |
| `get_customer_timeline`                                            | Everything that happened with one customer: what they did, messages either way and how each went, notes, when they were added | `activity.read`    |
| `add_customer_note`                                                | Write a note about a customer, such as a summary of a conversation; mention teammates to tell them  | `notes.write`      |
| `list_activity`, `summarize_activity`                              | What customers did across every customer, by kind, customer, text or time; each kind counted in a period| `activity.read`    |
| `list_conversations`, `read_conversation`, `get_attachment`        | The inbox, a customer's messages either way, and a photo they sent                                  | `messages.read`    |
| `list_messages`, `get_message`, `list_templates`, `list_senders`   | What was sent and where it stands; the templates and senders to send with                           | `messages.read`    |
| `get_template`, `template_guide`, `preview_email`                  | A template with its design; how to write good templates; an email design checked and read as text, with what to improve| `messages.read`    |
| `save_template`                                                    | Write or change an SMS, email or WhatsApp template; a new WhatsApp template goes to Meta for review | `messages.send`    |
| `send_message`, `cancel_message`, `mark_read`                      | One message to one person: text, a saved template, or a WhatsApp template                           | `messages.send`    |
| `list_segments`, `preview_segment`                                 | The segments and their sizes; who a set of rules would match                                        | `segments.read`    |
| `estimate_broadcast`                                               | How many people a broadcast reaches and what it costs, before sending                               | `messages.read`    |
| `send_broadcast`, `cancel_broadcast`                               | One message to segments, a list of addresses, or everyone, now or scheduled                         | `broadcasts.send`  |
| `list_broadcasts`, `get_broadcast`                                 | Broadcasts and how each went                                                                        | `broadcasts.read`  |
| `get_analytics`                                                    | Customer and engagement figures for a period, against the period before                             | `analytics.read`   |
| `get_setup`                                                        | Where the business is in the setup guide, and the next step                                         | none (sign-in only)|
| `developer_guide`                                                  | How a developer makes an API key, secrets, key pairs and tokens, and uses the SDKs and webhooks     | none               |
| `rename_business`, `create_business`                               | Rename this business; add another owned by the person who connected the agent                       | `organization.manage`|
| `list_team`                                                        | The team, their roles and open invitations                                                          | `team.read`        |
| `invite_teammate`, `change_teammate_role`, `remove_teammate`, `cancel_invitation`| Invite people as admins or members, change roles, remove them, cancel invitations                   | `team.manage`      |
| `read_audit_log`                                                   | Who did what in the business, and when                                                              | `audit.read`       |
| `list_webhooks`, `save_webhook`, `delete_webhook`                  | The webhooks; add, change or delete one. Secrets stay in the app                                    | `webhooks.manage`  |

Results are compact JSON in the API's own names, with ids the next call can use. An error comes back the way the
API says it, with its code and the fields at fault, so the agent can correct the call rather than retry it blind.

Not there, on purpose: importing, exporting, deleting and merging customers; creating or changing segments; making API
keys; billing and payments. Those are a developer's or an owner's work; `developer_guide` explains to a developer how to
make a key. A key with `customers.delete` still can't delete
through the server.

## Sending

- `send_message` and `send_broadcast` need an **idempotency key** from the agent (an order number, a task id), so a
  retried call never sends twice.
- A WhatsApp text reaches someone at once only inside the 24 hours after they last wrote. Outside it, the message
  waits for them to open the conversation, and the result says so; a WhatsApp template is the way to reach them now.
- The **daily send limit** caps how many people the agent messages in any 24 hours, one-to-one messages and broadcast
  recipients together. Past it, a send is refused with `send_limit_reached` and the numbers. Set it when connecting,
  or on the key, and keep it close to what the agent's job needs.
- Every send counts against the business's SMS credit or its own WhatsApp account, like any other. `estimate_broadcast`
  says what a broadcast would cost before it goes.

## Next steps

- [Authentication](https://docs.goomzo.africa/docs/developers/authentication?utm_source=llms&utm_medium=ai): keys, permissions and the daily send limit.
- [Track customers](https://docs.goomzo.africa/docs/developers/agents/customers?utm_source=llms&utm_medium=ai): what in a system becomes a customer, a detail or activity.

---

For an index of all available documentation, see [/llms.txt](https://docs.goomzo.africa/llms.txt)
