---
title: "Safety when an AI agent works in your CRM | mcpcrm guide"
url: https://mcpcrm.app/guide/safety/
description: "This chapter covers roles, contributor agents, a limit on bulk changes, undo for a whole agent session, a live monitor, approval before anything is sent, and what a mailbox reader keeps."
---

Chapter 10 of 10

# Safety when an AI agent works in your CRM

Letting software change customer records calls for limits you can check. This chapter covers the controls to look for in any CRM you connect an agent to, and how mcpcrm provides each one.

## Give each agent its own role

An agent is a CRM user. It should have its own login, its own role and its own token, and never use an administrator’s account or a shared one. Then the CRM can refuse what the role does not allow, and every change shows which agent made it.

In mcpcrm, agents get the same roles as people: admin, member (no deletes), contributor and viewer (read only). Tools the role cannot use are not shown to the agent, and a refused call returns `ACCESS_DENIED` with an instruction not to retry.

## Contributor agents for outside tools

Some agents are not yours to watch: a chat on your website, a form handler, or an assistant that belongs to a partner. Give them the contributor role.

A contributor reads everything, adds records only in the modules the workspace allows (by default Comments, Tasks and Leads), changes only the records it added, and never deletes. It cannot undo, approve or allow anything either.

## A limit on bulk changes

Each mcpcrm workspace sets how many records an agent may update or delete in 10 minutes: 10, 25, 50 or 100, or no limit. Each row of an import and each draft email counts. Creating other records one at a time and adding comments do not count, because undo covers them and they overwrite nothing.

Past the limit, the agent gets `CONFIRM_REQUIRED` and its call changes nothing. The session shows as paused in the agent monitor, and every open page shows a notice. A person allows 100 more changes, or the rest of the session, or undoes it. Agents are told to stop at the first `CONFIRM_REQUIRED`, even inside a script.

## Undo a whole session

mcpcrm records the values before and after every change, with the agent session that made it. You can review a session and undo it in one step, including its imports and field changes.

Undo refuses to overwrite a later change by someone else. Sent emails cannot be undone, which is why they need approval first.

## Watch agents work

The agent monitor shows every tool call as it happens, including the calls a role refused, grouped into sessions.

Its log holds the tool, the workspace, record IDs, the outcome and the timing. It never holds field values, so the log does not copy your customer data.

## Approval before anything is sent

Agents write drafts, revise them and withdraw them. In an mcpcrm Team campaign, only the person who owns the mailbox approves its drafts and starts or resumes sending. Other people and agents can prepare a campaign, and none of them can send under someone else’s name.

Test copies from an agent go only to that mailbox’s own address. mcpcrm checks the do-not-contact list, one first approach per lead and the opt-out sentence before every send.

## What the mailbox reader keeps

A campaign that reads replies needs access to a mailbox, which also holds mail that has nothing to do with the campaign. In mcpcrm Team the reader keeps only what concerns its campaigns.

-   mcpcrm reads the inbox of a campaign’s mailbox every five minutes, and no other folder.
-   It keeps a reply to a campaign email, matched by its Message-ID or its subject. The sender, subject, date and text go on the lead, and the lead’s status changes. Attachments are not kept.
-   For a bounce, it marks the email as failed with the mail server’s reason and puts a dead address on the do-not-contact list. The bounce itself is not kept.
-   Everything else in a campaign mailbox is read in memory and forgotten, including other mail from your leads and contacts.
-   A shared mailbox, such as support@, saves all its incoming mail in its workspace only when an owner or admin turns on "Store incoming mail". The workspace’s mail rules then decide which messages become tickets or tasks and which are ignored.
-   Messages stay unread, and mcpcrm never moves, flags or deletes anything in the mailbox.
-   The server log records how many messages it read and matched, and never addresses, subjects or text.

The [trust page](https://mcpcrm.app/trust/#mailbox) has the full list, including how the mailbox password is stored.

## A worked example: a script that went too far

1.  ### The agent writes a script
    
    During the outreach campaign in the previous chapter, the agent wrote a script that saved drafts in batches through the same MCP tools, with the same token.
    
2.  ### The limit stops a batch
    
    The workspace allowed 100 changes in 10 minutes. The next batch got `CONFIRM_REQUIRED`, and its calls changed nothing.
    
3.  ### The script carries on
    
    The script did not stop at the refusal, and a later batch went through. Every change was still in the session’s history, so the owner could check each one and undo the session if needed.
    
4.  ### The rule is made clearer
    
    mcpcrm now tells every agent to stop at the first `CONFIRM_REQUIRED`, even inside a script, and to tell the person how many records it meant to change and why. A person can allow 100 more changes when the work should go on.
    

## A checklist for any CRM

Before you let an agent work in a CRM, check that you can say yes to each line.

-   Each agent has its own CRM user, role and token.
-   Each role is the smallest that does the job.
-   Agents cannot delete, or deleting needs a person.
-   Bulk changes stop and wait for a person past a limit.
-   Every change records which agent made it.
-   You can undo an agent’s session, or at least read its history.
-   Nothing reaches a customer without a person’s approval.
-   Tokens are revoked when a computer is lost or a person leaves.

## Prompts for review

### End-of-session summary

```
Before you stop, list every record you created, changed or commented on in this session, with its ID and what you did. Point out anything you were unsure about, so that I can check it or undo the session.
```

### What changed on a record

Uses tools from mcpcrm Solo and mcpcrm Team

```
Call get_history for [record]. Tell me in plain words who changed what and when, and which changes an agent made.
```

## In mcpcrm

Roles, contributor agents, the bulk-change limit, undo and the monitor are built into mcpcrm Solo and mcpcrm Team, and campaigns with approval and the mailbox reader are part of mcpcrm Team. A connected CRM keeps its own roles and history, and the gateway stores no records. The [trust page](https://mcpcrm.app/trust/) lists what each way of using mcpcrm stores, and where.

[Where mcpcrm keeps your data](https://mcpcrm.app/trust/)

## Try it with your own agent

mcpcrm Solo is free for one person and runs in your browser. Connect your agent, and it gets the CRM manual and your rules when it connects. Then start with the prompts in this guide.

[Open the app](https://app.mcpcrm.app)[Get the prompt pack](https://mcpcrm.app/guide/prompts/)
