Yes, an AI agent can read your email once you grant it a mailbox permission, and the permission’s name tells you how far it can go. In Gmail, gmail.readonly reads messages, gmail.send sends them and gmail.modify reads, composes and sends. In Microsoft 365, Mail.Read reads, Mail.ReadWrite also changes and deletes, and Mail.Send sends. Pick the narrowest one that does your one job.

Permission names last checked November 25, 2026, against Google’s and Microsoft’s developer documentation listed at the end.

Your inbox is a useful place for an AI assistant to work. It is also a record of other people’s lives: addresses, invoices, attachments, reset links and conversations they did not expect to become instructions for software.

Before connecting an agent, write down one job you want it to do. “Find the receipt for last month’s train ticket” creates a very different permission boundary from “handle my email.” The first needs a search and a result. The second could involve sending messages, deleting records and deciding whom you should answer.

Start with what the agent can change

An agent is more than a chatbot with a longer answer. It can select tools and continue through several steps toward a goal. Anthropic’s guide to building agents distinguishes these systems from workflows whose steps are fixed in advance.

For email, separate four capabilities: searching message metadata, reading full messages, creating drafts and sending or deleting mail. A product may bundle them into one connection. Read the permission screen rather than assuming a feature called “summarize” receives only summary-sized access.

A sensible first task has a visible stopping point: find three invoices and prepare a draft containing their dates and amounts. Review the original messages before accepting the result. If the tool only offers unrestricted mailbox access, that is useful information about whether it fits this task.

What the permission names say

A tool that connects to Gmail or Microsoft 365 asks for one or more named permissions on the consent screen. Both companies document them, and the differences are large.

Gmail (Google’s Gmail API scopes page, last updated September 10, 2026):

  • gmail.metadata shows message metadata such as labels and headers, but not the email body.
  • gmail.readonly views your email messages and settings.
  • gmail.compose manages drafts and sends email.
  • gmail.send sends email on your behalf.
  • gmail.modify reads, composes and sends email. Google says it does not allow immediate, permanent deletion that bypasses the trash.
  • https://mail.google.com/ reads, composes, sends and permanently deletes all your email. Google says to request it only if the app needs immediate permanent deletion, because every other action works with a narrower scope.

Google classes every scope in that list except gmail.send as restricted. Restricted scopes need extra app verification, and an app that stores or transmits restricted data on its servers must go through a security assessment. gmail.send is classed as sensitive and needs additional verification too.

Microsoft 365 (Microsoft Graph permissions reference):

  • Mail.ReadBasic reads mail properties except the body, preview, attachments and extended properties.
  • Mail.Read reads the signed-in user’s mailbox.
  • Mail.ReadWrite creates, reads, updates and deletes email. It does not include permission to send.
  • Mail.Send sends mail as the signed-in user.

Microsoft also lists application permissions that work without a signed-in user and cover all mailboxes in an organization. Its documentation says an administrator can configure an application access policy that limits an app to specific mailboxes.

Compare the screen with the job. A receipt search needs a read permission at most. If the same tool asks for gmail.modify, the full https://mail.google.com/ scope, or both Mail.ReadWrite and Mail.Send, it wants more than that task requires. The same habit applies to browser extension permissions: read what is requested before you click allow.

Treat incoming messages as evidence

An email can contain text that looks like an instruction: forward a document, visit a link, ignore a previous rule. That text may be legitimate correspondence, marketing copy or an attempt to redirect the agent.

The practical question is whether the assistant treats material it reads as information about the task or as authority to change the task. A sender should not acquire control over your software simply by writing an imperative sentence. Security teams call this risk prompt injection.

Try a harmless test mailbox or a small folder first. Include an old invoice, a revised invoice and a message containing an instruction unrelated to the job. Check which document the agent chooses and whether it asks before taking an action outside the original request. This is a suggested test, not a claim that we have tested a particular product.

Make approval specific

“Ask me first” is only useful if the approval shows what will happen. For a message, that means the recipients, subject, body and attachments. For a deletion, it means the exact messages and whether the action can be undone.

A confirmation reading “continue workflow” does not tell you much. Neither does a reassuring summary if the actual tool call sends to a different address. Prefer a review screen connected directly to the action being approved.

Also find the stop and disconnect controls before a long task begins. Revoking access should prevent future work; it will not recall an email already sent or automatically remove copies already stored by a service.

Check the result, not just the answer

An agent can say “done” without accomplishing the intended change. In its evaluation guidance, Anthropic separates the agent’s output from the final state of the environment.

Apply that distinction to mail. Is the draft actually in the right folder? Are the recipients correct? Did a label change affect only the selected thread? Keep the original messages available while checking. These details tell you more than the fluency of the assistant’s explanation.

If you are comparing tools, our guide to AI benchmarks and real work explains how to build a small test around your own tasks.