Skip to main content
Glama

delete_file

Permanently remove files from Gemini AI storage to manage quotas, clean up after processing, or delete sensitive data. Uses file URI for immediate deletion that cannot be undone.

Instructions

DELETE FILE FROM GEMINI - Permanently removes file from Gemini File API and clears from cache. USAGE: Pass fileUri from upload or list_files. Immediate deletion, cannot be undone. USE CASE: Clean up after processing, manage storage quota, remove sensitive data. NOTE: Files auto-delete after 48 hours if not manually removed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileUriYesThe file URI or name to delete
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively communicates critical traits: the operation is permanent ('cannot be undone'), immediate ('Immediate deletion'), and has side effects ('clears from cache'). It also mentions the auto-delete policy ('Files auto-delete after 48 hours if not manually removed'), adding valuable context beyond basic functionality.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and front-loaded with the core action. Each sentence adds value: the first defines the tool, the second specifies usage, and the third provides use cases and notes. However, the 'NOTE' about auto-delete, while useful, could be integrated more smoothly, and some phrasing ('DELETE FILE FROM GEMINI') is slightly redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (destructive operation with no annotations or output schema), the description is complete enough. It covers purpose, behavior, usage guidelines, and critical warnings, addressing all necessary aspects for safe and effective use without needing to explain return values or rely on structured fields.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with the parameter 'fileUri' fully documented in the schema. The description adds minimal semantic context by noting 'Pass fileUri from upload or list_files', which hints at the parameter's source but does not provide additional syntax or format details. This meets the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('permanently removes file') and resource ('from Gemini File API and clears from cache'), distinguishing it from siblings like 'get_file' (retrieval) and 'list_files' (listing). It explicitly identifies the tool's destructive nature, making its purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear usage context ('Clean up after processing, manage storage quota, remove sensitive data') and notes prerequisites ('Pass fileUri from upload or list_files'). However, it does not explicitly mention when NOT to use it or name specific alternatives among siblings (e.g., 'cleanup_all_files' for bulk deletion), which prevents a perfect score.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mintmcqueen/gemini-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server