# Should AI agents use Gmail? Rules and limits for 2027

> Should an AI agent use Gmail? Scopes, token expiry, sending limits and Google's 2027 agent rule, plus when a separate agent inbox fits better.

Source: https://trotta.email/learn/should-ai-agents-use-gmail

Use Gmail when an agent helps you with your own mail and you check what it sends. Give the agent an inbox of its own when it signs up for services, hears from strangers or runs unattended. Apps that read mail for others also face Google's verification, security assessment and agent rules.

Updated December 3, 2026

## What are your three options?

| Setup | What the agent reaches | Good for | Watch out for |
| --- | --- | --- | --- |
| Agent connected to your Gmail | Your mail, within the scopes you grant | Sorting, summaries, drafts you send | Years of mail and sign-in codes in reach |
| A second Gmail account for the agent | What is sent there | A small experiment | Account terms, sending limits, setup by hand |
| An inbox made for agents | Its own mail | Sign-ups, outside senders, many agents | It is not your existing address |

## Which Gmail scopes does an agent need?

Google sorts Gmail scopes into non-sensitive, sensitive and restricted. Almost every scope that reads mail is restricted.

| Scope | What Google says it allows | Class |
| --- | --- | --- |
| `gmail.send` | Send email on your behalf | Sensitive |
| `gmail.compose` | Manage drafts and send emails | Restricted |
| `gmail.readonly` | View your email messages and settings | Restricted |
| `gmail.modify` | Read, compose and send emails | Restricted |
| `gmail.metadata` | Labels and headers, not the body | Restricted |
| `https://mail.google.com/` | Read, compose, send and permanently delete all your email | Restricted |

A restricted scope brings verification. An app that reaches restricted data from or through a server also needs a security assessment every year. Google lists exceptions, among them personal use, development and testing, and internal use within one organization.

Plan the agent around this: the scopes page lists no read scope for one label or one sender. An agent that may read your mail may read all of it.

## Why does an agent's Gmail access stop after a week?

Two seven day clocks catch agents that run unattended.

- **Refresh tokens in testing.** If the consent screen is external and its publishing status is Testing, the refresh token expires in 7 days, unless you ask for basic profile scopes alone. A human has to sign in again.
- **Push notifications.** A Gmail `watch` must be renewed at least every 7 days or updates stop. Google recommends renewing once a day.

There is also a ceiling of 100 refresh tokens per account for each client ID. Past it, the oldest stops working without a warning.

## How much email can the agent send?

| Account | Published limit |
| --- | --- |
| Personal Gmail | You may hit the limit above 500 recipients in one email, or 500 emails sent in a day |
| Google Workspace | 2,000 messages a day per account, 500 on a trial |
| Google Workspace, through the Gmail API | 500 recipients per message |
| Gmail API quota | 6,000 quota units a minute for each account in your project. `messages.send` costs 100 |

## What changes for agents in 2027?

On November 24, 2026 Google made its Workspace MCP servers and Workspace command line tool generally available, with new rules for agents that reach Workspace data.

| From | Change |
| --- | --- |
| February 1, 2027 | Enforcement starts: AI agents must use the Workspace MCP servers or the command line tool, not the REST APIs directly |
| February 1, 2027 | External agents that still call the REST APIs directly are held to Standard Tier quotas |
| April 1, 2027 | Standard limits are enforced and paid Scaled Tier billing starts |

Read the scope of the rule with care. Google's developer page words it for external agents and says internal agentic use cases are not required to use MCP. Its internal-use exception covers projects used inside one Workspace organization that do not share their access with third party services. The Standard Tier caps each Workspace MCP server at 5,000 requests a day per project.

## What does Google's Gmail MCP server let an agent do?

It can search, read, label, draft and trash, and it can send, reply and forward. On the main endpoint, `/mcp/v1`, sensitive actions such as sending ask for your approval through the MCP client. A second endpoint, `/mcp/v1self`, is for clients that cannot show that prompt, and its list has no send tool.

An OAuth client that calls the server for a human must be marked as used by an AI-powered agent. Google's setup page also warns that mail may carry hidden instructions that hijack a session. It says you must screen prompts and responses, with Google's Model Armor or your own tool. That is [indirect prompt injection](https://trotta.email/learn/indirect-prompt-injection).

## When should the agent have its own inbox?

- It signs up for services and needs [its own verification codes](https://trotta.email/learn/verification-codes-for-ai-agents), apart from yours.
- Strangers write to it. A hijacked agent should find nothing of yours.
- You need one inbox per task or customer, created by code.
- Nobody is there to sign in again when a token expires.

A second consumer account is a weak version of this. Google's terms forbid creating fake accounts and misleading others into thinking AI content was written by a human, so read them before you automate one.

On Trotta Mail one call creates an inbox and a key, with no account. The [side by side comparison](https://trotta.email/compare/gmail-for-ai-agents) sets out both.

```bash
curl -X POST https://api.trotta.email/v1/agents/signup \
  -H "Content-Type: application/json" \
  -d '{"display_name": "Riley"}'
```

Know the limits before you move. Trotta Mail has no IMAP or SMTP access, and until a human claims the agent it can reply but cannot start conversations with new outside addresses. Your own mail can stay in Gmail.

## Questions

### Can an AI agent send email from my Gmail account?

Yes, with a send or compose scope, or through Google's Gmail MCP server. Prefer drafts where you can, and keep your own eye on anything that leaves.

### Is it against Google's terms for an agent to use Gmail?

Automation as such is not banned. Gmail's policies bar automating the Gmail interface in a way that misleads or deceives, and Google's terms bar fake accounts and passing AI content off as written by a human.

### Does the 2027 MCP rule apply to my own internal agent?

Google's developer page says internal agentic use cases are not required to use MCP. Check that your project fits its description of internal use before relying on that.

### Can I keep Gmail and still give my agent an address?

Yes. Keep your mail where it is and give the agent a separate inbox. Forward it the messages that are part of its job and nothing else.

## Sources

- [Google Workspace Updates: MCP servers, CLI, standardized usage tiers and admin policies, November 24, 2026](https://workspaceupdates.googleblog.com/2026/11/mcp-servers-cli-standardized-usage-tiers-now-available.html)
- [Choose Gmail API scopes (Google for Developers)](https://developers.google.com/workspace/gmail/api/auth/scopes)
- [Restricted scope verification (Google for Developers)](https://developers.google.com/identity/protocols/oauth2/production-readiness/restricted-scope-verification)
- [Using OAuth 2.0: refresh token expiration (Google for Developers)](https://developers.google.com/identity/protocols/oauth2)
- [Gmail API push notifications (Google for Developers)](https://developers.google.com/workspace/gmail/api/guides/push)
- [Limits for sending and getting mail (Gmail Help)](https://support.google.com/mail/answer/22839)
- [Gmail sending limits in Google Workspace (Google Workspace Admin Help)](https://knowledge.workspace.google.com/admin/gmail/gmail-sending-limits-in-google-workspace)
- [Gmail API and MCP server quotas (Google for Developers)](https://developers.google.com/workspace/gmail/api/guides/quotas)
- [Usage tiers and quotas for Google Workspace APIs and MCP servers (Google for Developers)](https://developers.google.com/workspace/guides/quota-usage-tiers)
- [Configure the Gmail MCP server (Google for Developers)](https://developers.google.com/workspace/gmail/api/guides/configure-mcp-server)
- [Gmail MCP reference: toolsets (Google for Developers)](https://developers.google.com/workspace/gmail/api/reference/mcp)
- [Gmail Program Policies (Gmail Help)](https://support.google.com/mail/answer/16734397)
- [Google Terms of Service](https://policies.google.com/terms)

## Related

- [Gmail for AI agents](https://trotta.email/compare/gmail-for-ai-agents) Compare
- [Agent identity and email: why an agent needs its own address](https://trotta.email/learn/agent-identity-email) Guides
- [Free email for AI agents](https://trotta.email/learn/free-email-for-ai-agents) Guides
- [OAuth for an MCP email server, step by step](https://trotta.email/learn/mcp-email-oauth) Guides
- [The lethal trifecta for an AI agent with email](https://trotta.email/learn/lethal-trifecta-email) Guides
- [Outlook for AI agents](https://trotta.email/compare/outlook-for-ai-agents) Compare

Give your agent an inbox of its own. Free for three agent inboxes and you. No card.

[Get an inbox](https://trotta.email/signup) [Read the docs](https://trotta.email/docs)
