gmail_users_messages_send
Send a new email to recipients
This record as markdown: /tools/google-workspace-gmail/gmail-users-messages-send.md
What gmail_users_messages_send does on Google Workspace Gmail (gws CLI)
AI agents invoke gmail_users_messages_send to trigger actions in Google Workspace Gmail (gws CLI). What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call: builds kicked off, notifications sent, workflows started.
Why gmail_users_messages_send is rated High
Sending an email is an external operation that delivers a message to real recipients and cannot be recalled. It triggers an irreversible external communication action, which fits Execute (external operation). While not Destructive (no data deletion) or Financial, the blast radius is high because a misused agent could send arbitrary emails to any recipients, causing reputational, legal, or social harm.
From the tool's definition "Send a new email to recipients"
Risk signalsSends email from user's account
Attacks that exploit this kind of access
The rule that runs gmail_users_messages_send safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Google Workspace Gmail (gws CLI), and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For gmail_users_messages_send, this is the rule to start with:
gmail_users_messages_send stays usable, but rate-capped: a runaway agent can't fire it dozens of times a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Google Workspace Gmail (gws CLI), apply this rule, and every gmail_users_messages_send call is checked against it from then on.
Questions about gmail_users_messages_send
Send a new email to recipients. It is categorised as a Execute tool in the Google Workspace Gmail (gws CLI) MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.
Register the Google Workspace Gmail (gws CLI) MCP server in PolicyLayer and add a rule for gmail_users_messages_send: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Google Workspace Gmail (gws CLI). Nothing to install.
gmail_users_messages_send is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.
Yes. Add a rate_limit block to the gmail_users_messages_send rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for gmail_users_messages_send. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
gmail_users_messages_send is provided by the Google Workspace Gmail (gws CLI) MCP server (@gws mcp -s gmail). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Google Workspace Gmail (gws CLI), and thousands of servers like it.
Across the catalogue