Before you give an AI agent your email: read, draft or send?
Start with read-only access. Move to drafts only when a person reviews every draft before it goes out. Allow sending only for narrow, low-risk cases, with a log of every message. Ask for full mailbox access only if the agent must permanently delete mail. The reason is that Gmail's permission names are less clear than they look: Google describes the draft scope as "Manage drafts and send emails," so "drafts only" is not a limit you get from the permission alone. This guide covers Gmail and Google Workspace only. It does not cover other email systems.
What each Gmail scope allows
These descriptions are quoted from Google's scope list. Google groups every scope below as restricted, apart from gmail.send, which it lists as sensitive.
| Scope | Google's description | What it means for you |
|---|---|---|
| gmail.readonly | "View your email messages and settings." | Can read. The safest place to start. |
| gmail.compose | "Manage drafts and send emails." | Can create drafts and can also send. |
| gmail.send | "Send email on your behalf." | Can send. |
| gmail.modify | "Read, compose, and send emails from your Gmail account." | Reads and sends. Google says it does not allow immediate, permanent deletion that skips the trash. |
| https://mail.google.com/ | "Read, compose, send, and permanently delete all your email from Gmail." | Everything, including permanent deletion. |
Google's own guidance is to choose the most narrowly focused scope possible and avoid requesting scopes your app does not need. Google also says users are more willing to grant limited, clearly described access.
Which level to give, and when
This ladder is our suggested rule. The scope facts come from Google's page.
- Read-only. Use it for summarising, sorting, finding old threads or drafting a reply in another tool where a person pastes it. Stay here until the agent has proved useful.
- Drafts, with a person reviewing every draft. Only if someone on your team opens and approves each draft before it is sent. Remember that the compose scope can also send, so do not treat the scope name as the control. The review step is the control.
- Sending, in narrow low-risk cases. For example, a fixed type of routine message to a known kind of recipient. Keep a log of each message sent, and a way to switch it off quickly.
- Full access. Only if the agent must permanently delete mail. Google says this is the only case for the full-access scope.
If you cannot say why the agent needs the next level, stay at the current one.
Email is untrusted input
An email agent reads text written by strangers. Google's Gmail MCP guide warns that when you expose a language model to untrusted data, there is a risk of indirect prompt injection. It says emails or other resources from unverified sources might contain hidden instructions that can hijack your session. In plain terms, a message could contain text aimed at the agent rather than at you.
The same guide lists what an MCP connection can do: search threads, retrieve messages and drafts, and list labels and filters, and also send, reply to, forward, create and update drafts, and manage labels and filters. It notes that these tools can read, modify and delete data in your Google Account. Its recommendations include using only trusted tools, screening prompts and responses for malicious content with Model Armor or your own documented solution, and reviewing every action the AI takes. The MCP guide lists the scopes readonly, compose, modify and settings.basic, the last only for the create-filter tool. Check Google's page for current terms before you rely on it.
Three common mistakes
These are the ones we suggest watching for.
- Believing "drafts only" means it cannot send. Google's description of gmail.compose includes sending.
- Connecting your main mailbox first. Anything the agent can read or send sits alongside your real customer, supplier and staff mail.
- Approving the consent screen without reading it. The screen lists what you are granting. Compare it with what you intended.
A checklist for today
- Create a dedicated mailbox for the agent's work, rather than using your own
- Decide the lowest level it needs: read, draft, or send
- On the Google consent screen, read each permission listed and compare it with that decision
- If the scope list includes send, compose, modify or full access, write down why
- Add a human approval step before anything leaves the mailbox
- Turn on an action log: what was read, drafted, sent, and when
- Name one person who reviews the log and can remove access
- Set a date to review whether the agent still needs what it has
How an AI agent fits
An email agent can save real time on sorting, summarising and first-draft replies, but each added permission adds risk. In our view, a good build starts at read-only, puts a person between the draft and the send button, and is tested with hostile emails before it touches live mail. At MirayaAI we build WhatsApp, voice and ops agents on n8n and the Claude API, scoped to the job and red-teamed before go-live. If you are weighing an agent of your own, the questions above are worth asking any builder.
Quick answers
If I only allow drafts, can the agent still send email?
Possibly. Google describes the gmail.compose scope as 'Manage drafts and send emails.' A drafts-only agent that holds that scope is technically able to send, so the limit must also be enforced in how the agent is built and in your approval step.
Which Gmail scope should I start with?
Start with the narrowest one that does the job. For an agent that only needs to read mail, that is gmail.readonly. Google's guidance is to choose the most narrowly focused scope possible and avoid scopes the app does not need.
When does an agent need full mailbox access?
Google says to request https://mail.google.com/ only if the app must permanently delete threads and messages, bypassing the trash. All other actions can use less permissive scopes.
What is indirect prompt injection in an email agent?
Google's Gmail MCP guide warns that when a language model is exposed to untrusted data, an indirect prompt injection attack is possible, and that emails or other resources from unverified sources might contain hidden instructions. Review the actions the agent takes.
Sources (checked 2 December 2026)
Tell us how it works today. We scope one agent around it and quote a fixed price. No pitch deck.
Book a free 30-minute call