GOOGLESUPER_MODIFY_THREAD_LABELS
Adds or removes specified existing label IDs from a Gmail thread, affecting all its messages; ensure the thread ID is valid.
This record as markdown: /tools/googlesuper/googlesuper-modify-thread-labels.md
What GOOGLESUPER_MODIFY_THREAD_LABELS does on Google Super
AI agents use GOOGLESUPER_MODIFY_THREAD_LABELS to create or update resources in Google Super, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Google Super environment.
| Parameter | Type | Required | Description |
|---|---|---|---|
user_id | string | — | User's email address or 'me' for the authenticated user. |
thread_id | string | — | Immutable ID of the thread to modify. |
add_label_ids | array | — | List of label IDs to add to the thread; these labels must exist. |
remove_label_ids | array | — | List of label IDs to remove from the thread; these labels must exist. |
Parameters from the server's own tool schema.
Why GOOGLESUPER_MODIFY_THREAD_LABELS is rated Medium
This tool modifies Gmail thread labels by adding or removing them, which are non-destructive, reversible operations. Labels can be added back or removed as needed. While it affects email organization and potentially visibility/filtering (hence 'medium' severity if misused to hide/expose messages), it does not delete, destroy, or execute arbitrary code.
From the tool's definition Tool description states it 'Adds or removes specified existing label IDs from a Gmail thread' — these are reversible modifications to message metadata/organization.
Attacks that exploit this kind of access
The rule that runs GOOGLESUPER_MODIFY_THREAD_LABELS safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Google Super, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For GOOGLESUPER_MODIFY_THREAD_LABELS, this is the rule to start with:
GOOGLESUPER_MODIFY_THREAD_LABELS stays usable, but capped: an agent stuck in a loop can't make hundreds of changes a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Google Super, apply this rule, and every GOOGLESUPER_MODIFY_THREAD_LABELS call is checked against it from then on.
Questions about GOOGLESUPER_MODIFY_THREAD_LABELS
Adds or removes specified existing label IDs from a Gmail thread, affecting all its messages; ensure the thread ID is valid. It is categorised as a Write tool in the Google Super MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
GOOGLESUPER_MODIFY_THREAD_LABELS accepts 4 parameters: user_id, thread_id, add_label_ids, remove_label_ids. The full parameter table on this page comes from the server's own tool schema.
Register the Google Super MCP server in PolicyLayer and add a rule for GOOGLESUPER_MODIFY_THREAD_LABELS: 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 Super. Nothing to install.
GOOGLESUPER_MODIFY_THREAD_LABELS is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the GOOGLESUPER_MODIFY_THREAD_LABELS 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 GOOGLESUPER_MODIFY_THREAD_LABELS. 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.
GOOGLESUPER_MODIFY_THREAD_LABELS is provided by the Google Super MCP server (googlesuper). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Google Super, and thousands of servers like it.
This server
Across the catalogue