GOOGLESUPER_GET_ATTACHMENT
Retrieves a specific attachment by ID from a message in a user's Gmail mailbox, requiring valid message and attachment IDs.
This record as markdown: /tools/googlesuper/googlesuper-get-attachment.md
What GOOGLESUPER_GET_ATTACHMENT does on Google Super
AI agents call GOOGLESUPER_GET_ATTACHMENT to retrieve information from Google Super without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
user_id | string | — | User's email address ('me' for authenticated user). |
file_name | string | — | Desired filename for the downloaded attachment. Make sure that file_name is passed |
message_id | string | — | Immutable ID of the message containing the attachment. Make sure that message_id is passed and is valid, not a placeholder or NULL. |
attachment_id | string | — | ID of the attachment to retrieve. Make sure that attachment_id is passed and is valid, not a placeholder or NULL. |
Parameters from the server's own tool schema.
Why GOOGLESUPER_GET_ATTACHMENT is rated Low
This tool retrieves email attachments without side effects, fitting the Read category. However, severity is medium rather than low because attachments can contain sensitive information (financial documents, personal files, credentials), and unauthorized access via a compromised AI agent could expose confidential data.
From the tool's definition Tool name 'GET_ATTACHMENT' and description 'Retrieves a specific attachment' indicate a read operation that queries and fetches data from Gmail without modification.
Attacks that exploit this kind of access
The rule that runs GOOGLESUPER_GET_ATTACHMENT 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_GET_ATTACHMENT, this is the rule to start with:
GOOGLESUPER_GET_ATTACHMENT is read-only, so it stays allowed. 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_GET_ATTACHMENT call is checked against it from then on.
Questions about GOOGLESUPER_GET_ATTACHMENT
Retrieves a specific attachment by ID from a message in a user's Gmail mailbox, requiring valid message and attachment IDs. It is categorised as a Read tool in the Google Super MCP Server, which means it retrieves data without modifying state.
GOOGLESUPER_GET_ATTACHMENT accepts 4 parameters: user_id, file_name, message_id, attachment_id. 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_GET_ATTACHMENT: 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_GET_ATTACHMENT is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the GOOGLESUPER_GET_ATTACHMENT 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_GET_ATTACHMENT. 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_GET_ATTACHMENT 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