UPLOAD MULTIPLE FILES EFFICIENTLY - Handles 2-40+ files with smart parallel processing. TYPICAL USE: 2-10 files for multi-document analysis, code reviews, or comparative tasks. SCALES TO: 40+ files for comprehensive dataset processing. FEATURES: Automatic retry (3 attempts), parallel uploads (5 c...
AI agents use upload_multiple_files to create or update resources in Gemini MCP Server — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Gemini MCP Server environment.
The tool uploads files to an external service (Google's Gemini), creating persistent resources that can be referenced later. This is a Write operation—it creates/stores data reversibly.
From the tool's definition Tool description states 'Handles 2-40+ files with smart parallel processing' and 'System uploads in optimized batches, 3) Returns URIs for use in chat tool.' This is file upload functionality that creates new resources (file URIs) in the Gemini service.
Attacks that exploit this kind of access
UPLOAD MULTIPLE FILES EFFICIENTLY - Handles 2-40+ files with smart parallel processing. TYPICAL USE: 2-10 files for multi-document analysis, code reviews, or comparative tasks. SCALES TO: 40+ files for comprehensive dataset processing. FEATURES: Automatic retry (3 attempts), parallel uploads (5 concurrent default), processing state monitoring (waits for ACTIVE state). WORKFLOW: 1) Provide array of file paths, 2) System uploads in optimized batches, 3) Returns URIs for use in chat tool. PERFORMANCE: 2 files = ~30 seconds, 10 files = ~1-2 minutes, 40 files = ~2-3 minutes. Each successful upload returns: originalPath, file object, URI. Failed uploads include error details. Use upload_file for single files instead. It is categorised as a Write tool in the Gemini MCP Server MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
Register the Gemini MCP Server MCP server in PolicyLayer and add a rule for upload_multiple_files: 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 Gemini MCP Server. Nothing to install.
upload_multiple_files 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 upload_multiple_files 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 upload_multiple_files. 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.
upload_multiple_files is provided by the Gemini MCP Server MCP server (mintmcqueen/gemini-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Every MCP server has a record like this.
Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.
Teams ship this data inside their own products. See what a licence covers →