Google Workspace Gmail (gws CLI)

79 tools. 49 can modify or destroy data without limits.

12 destructive tools with no built-in limits. Policy required.

Last updated:

49 can modify or destroy data
30 read-only
79 tools total

Community server · catalogue entry checked 03/04/2026

How to control Google Workspace Gmail (gws CLI) ↓

What Google Workspace Gmail (gws CLI) exposes to your agents

Read (30) Write / Execute (37) Destructive / Financial (12)
Critical Risk

The most dangerous Google Workspace Gmail (gws CLI) tools

49 of Google Workspace Gmail (gws CLI)'s 79 tools can modify, destroy, or commit something on every call — and an agent calls them with no built-in limits.

How to control Google Workspace Gmail (gws CLI)

PolicyLayer is an MCP gateway — it sits between your AI agents and Google Workspace Gmail (gws CLI), and nothing reaches the server without passing your rules. These are the rules we recommend:

Deny destructive operations
{
  "gmail_users_drafts_delete": {
    "deny_if": [
      {
        "conditions": [],
        "on_deny": "Blocked by default. Requires approval."
      }
    ]
  }
}

Destructive tools should never be available to autonomous agents without human approval.

Rate limit write operations
{
  "gmail_users_drafts_create": {
    "limits": [
      {
        "counter": "gmail_users_drafts_create_per_hour",
        "window": "hour",
        "max": 30,
        "scope": "grant"
      }
    ]
  }
}

Prevents bulk unintended modifications from agents caught in loops.

Cap read operations
{
  "gmail_users_drafts_get": {
    "limits": [
      {
        "counter": "gmail_users_drafts_get_per_minute",
        "window": "minute",
        "max": 60,
        "scope": "grant"
      }
    ]
  }
}

Controls API costs and prevents retry loops from exhausting upstream rate limits.

  1. Create a free account and register Google Workspace Gmail (gws CLI) — nothing to install.
  2. Add these rules — paste them, or build them visually. Tune the limits to your setup.
  3. Point your MCP client (Claude, Cursor, anything) at your gateway URL.

All 79 Google Workspace Gmail (gws CLI) tools

WRITE 36 tools
Write gmail_users_drafts_create Create a new email draft Write gmail_users_drafts_send Send an existing draft to its recipients Write gmail_users_drafts_update Replace an existing draft's content Write gmail_users_labels_create Create a new mailbox label Write gmail_users_labels_patch Patch a mailbox label Write gmail_users_labels_update Update a mailbox label Write gmail_users_messages_batchModify Batch modify labels on multiple messages Write gmail_users_messages_import Import a message via SMTP-like delivery Write gmail_users_messages_insert Insert a message bypassing spam scanning Write gmail_users_messages_modify Modify labels on a message Write gmail_users_messages_trash Move a message to the trash Write gmail_users_messages_untrash Restore a message from the trash Write gmail_users_settings_cse_identities_create Create a client-side encryption identity Write gmail_users_settings_cse_identities_patch Patch a CSE identity Write gmail_users_settings_cse_keypairs_create Create and upload a CSE keypair Write gmail_users_settings_cse_keypairs_disable Disable a CSE keypair Write gmail_users_settings_cse_keypairs_enable Enable a disabled CSE keypair Write gmail_users_settings_delegates_create Add a mailbox delegate with access Write gmail_users_settings_filters_create Create a message filter rule Write gmail_users_settings_forwardingAddresses_create Create a forwarding address Write gmail_users_settings_sendAs_create Create a custom send-as alias Write gmail_users_settings_sendAs_patch Patch a send-as alias Write gmail_users_settings_sendAs_smimeInfo_insert Upload an S/MIME config for a send-as alias Write gmail_users_settings_sendAs_smimeInfo_setDefault Set the default S/MIME config for an alias Write gmail_users_settings_sendAs_update Update a send-as alias Write gmail_users_settings_sendAs_verify Send verification email for a send-as alias Write gmail_users_settings_updateAutoForwarding Update auto-forwarding settings Write gmail_users_settings_updateImap Update IMAP settings Write gmail_users_settings_updateLanguage Update language settings Write gmail_users_settings_updatePop Update POP settings Write gmail_users_settings_updateVacation Update vacation responder settings Write gmail_users_stop Stop push notifications for the mailbox Write gmail_users_threads_modify Modify labels on an email thread Write gmail_users_threads_trash Move an email thread to the trash Write gmail_users_threads_untrash Restore an email thread from the trash Write gmail_users_watch Set up push notification watch on mailbox
READ 30 tools
Read gmail_users_drafts_get Get an email draft by ID Read gmail_users_drafts_list List all drafts in the mailbox Read gmail_users_getProfile Get the current user's Gmail profile Read gmail_users_history_list List history of mailbox changes Read gmail_users_labels_get Get a label by ID Read gmail_users_labels_list List all labels in the mailbox Read gmail_users_messages_attachments_get Download a message attachment Read gmail_users_messages_get Get an email message by ID Read gmail_users_messages_list List messages in the mailbox Read gmail_users_settings_cse_identities_get Get a client-side encryption identity Read gmail_users_settings_cse_identities_list List client-side encryption identities Read gmail_users_settings_cse_keypairs_get Get a client-side encryption keypair Read gmail_users_settings_cse_keypairs_list List client-side encryption keypairs Read gmail_users_settings_delegates_get Get a mailbox delegate Read gmail_users_settings_delegates_list List mailbox delegates Read gmail_users_settings_filters_get Get a message filter by ID Read gmail_users_settings_filters_list List all message filters Read gmail_users_settings_forwardingAddresses_get Get a forwarding address Read gmail_users_settings_forwardingAddresses_list List forwarding addresses Read gmail_users_settings_getAutoForwarding Get auto-forwarding settings Read gmail_users_settings_getImap Get IMAP settings Read gmail_users_settings_getLanguage Get language settings Read gmail_users_settings_getPop Get POP settings Read gmail_users_settings_getVacation Get vacation responder settings Read gmail_users_settings_sendAs_get Get a send-as alias Read gmail_users_settings_sendAs_list List send-as aliases Read gmail_users_settings_sendAs_smimeInfo_get Get an S/MIME configuration Read gmail_users_settings_sendAs_smimeInfo_list List S/MIME configs for a send-as alias Read gmail_users_threads_get Get an email thread by ID Read gmail_users_threads_list List email threads in the mailbox

Related servers

Other MCP servers with similar tools — same risk classification, starter policies for each.

Questions about Google Workspace Gmail (gws CLI)

Can an AI agent delete data through the Google Workspace Gmail (gws CLI) MCP server? +

Yes. The Google Workspace Gmail (gws CLI) server exposes 12 destructive tools including gmail_users_drafts_delete, gmail_users_labels_delete, gmail_users_messages_batchDelete. These permanently remove resources with no undo. PolicyLayer blocks destructive tools by default so they never reach the upstream server.

How do I prevent bulk modifications through Google Workspace Gmail (gws CLI)? +

The Google Workspace Gmail (gws CLI) server has 36 write tools including gmail_users_drafts_create, gmail_users_drafts_send, gmail_users_drafts_update. Set a rate limit in your policy -- for example, 10 calls per hour prevents an agent from making more than 10 modifications per hour. PolicyLayer enforces this at the gateway, before calls reach Google Workspace Gmail (gws CLI).

How many tools does the Google Workspace Gmail (gws CLI) MCP server expose? +

79 tools across 4 categories: Destructive, Execute, Read, Write. 30 are read-only. 49 can modify, create, or delete data.

How do I enforce a policy on Google Workspace Gmail (gws CLI)? +

Register the Google Workspace Gmail (gws CLI) MCP server in PolicyLayer, apply the suggested rules above (adjust the limits to your use case), and point your AI client at the PolicyLayer proxy URL instead of the server directly. Your agents keep the same tools; PolicyLayer evaluates every call against policy before it executes. Nothing to install, live in minutes.

Enforce policy on every Google Workspace Gmail (gws CLI) tool call.

Deterministic rules across all 79 Google Workspace Gmail (gws CLI) tools. Per-identity grants. Full audit log. Live in minutes. Nothing to install.

Instant setup, no code required.

79 Google Workspace Gmail (gws CLI) tools catalogued and risk-classified — across an index of 46,500+ MCP servers.

// WHERE THIS COMES FROM

These policies come from Google Workspace Gmail (gws CLI)'s registry record.

The record behind this page: verified identity, auth posture, risk grade, every tool classified, recommended policy — re-checked continuously.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.