This record as markdown: /tools/googlesuper/googlesuper-patch-label.md
What GOOGLESUPER_PATCH_LABEL does on Google Super
AI agents use GOOGLESUPER_PATCH_LABEL 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 |
|---|---|---|---|
id | string | — | The ID of the label to update. |
name | string | — | The display name of the label. |
color | object | — | The color to assign to the label. Color is only available for labels that have their `type` set to `user`. |
userId | string | — | The user's email address. The special value `me` can be used to indicate the authenticated user. |
labelListVisibility | string | — | The visibility of the label in the label list in the Gmail web interface. |
messageListVisibility | string | — | The visibility of messages with this label in the message list in the Gmail web interface. |
Parameters from the server's own tool schema.
Why GOOGLESUPER_PATCH_LABEL is rated Medium
PATCH operations are reversible modifications of existing resources. In Gmail/Google Workspace context, patching a label could modify its properties (name, color, visibility settings, etc.). This is a Write operation rather than Destructive since patches are reversible and the tool does not delete data.
From the tool's definition Tool name contains 'PATCH' which indicates modification of existing data (the 'specified label'). Description states 'Patches the specified label' confirming it modifies rather than deletes.
Attacks that exploit this kind of access
The rule that runs GOOGLESUPER_PATCH_LABEL 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_PATCH_LABEL, this is the rule to start with:
GOOGLESUPER_PATCH_LABEL 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_PATCH_LABEL call is checked against it from then on.
Questions about GOOGLESUPER_PATCH_LABEL
Patches the specified label. 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_PATCH_LABEL accepts 6 parameters: id, name, color, userId, labelListVisibility, messageListVisibility. 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_PATCH_LABEL: 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_PATCH_LABEL 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_PATCH_LABEL 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_PATCH_LABEL. 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_PATCH_LABEL 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