Skip to main content
Glama

Gdrive Delete File

gdrive_delete_file
Destructive

Deletes a file or an empty folder from the synced Google Drive folder — Google Drive for Desktop syncs the deletion to the cloud (the item lands in Drive's trash). Deleting a .gdoc/.gsheet/.gslides pointer removes the real Google Doc/Sheet/Slides. Never deletes a folder that still has contents.

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path under a Google Drive mount (use gdrive_root / gdrive_list_files to get one)
confirmNoIgnored; kept for older clients.

Output Schema

NameRequiredDescriptionDefault
pathYes
typeYesWhat was deleted: file, folder, or google_doc_pointer
deletedYesTrue only when the folder listing no longer shows the item

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / confirm / description
      Previous value: -"Must be true to actually delete"New value: +"Ignored; kept for older clients."
  2. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond destructiveHint=true by explaining the mechanism: Google Drive for Desktop syncs the deletion to the cloud, the item lands in Drive's trash (so it is recoverable), and pointer files delete the underlying real document rather than the shortcut. It also discloses a safety guard (non-empty folders are never deleted) and notes that the confirm parameter is ignored — genuinely useful behavior an agent could not infer from annotations.

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

Conciseness5/5

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

Two dense sentences, with the destructive scope and cloud-sync consequence front-loaded, followed by the pointer caveat and the folder guard. No filler, and each clause carries a distinct operational fact.

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?

For a destructive file-removal tool this covers what is needed: what gets deleted, where it goes (trash), how pointers behave, and what is refused. An output schema exists, so return values needn't be described.

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 coverage is 100%, so the path format and the 'ignored' status of confirm are already documented in structured fields. The description adds no parameter-level detail beyond that, so the baseline of 3 applies.

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?

States a specific verb and resource with explicit scope: deletes a file or empty folder within the synced Google Drive folder. It also distinguishes the special case of .gdoc/.gsheet/.gslides pointers, which no sibling tool covers, so an agent can separate it from onedrive_delete_file and recipe_delete.

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

Usage Guidelines3/5

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

The description establishes preconditions implicitly ('Never deletes a folder that still has contents', the path must be under a Drive mount), but it never states when to pick this over siblings such as onedrive_delete_file, nor does it route the agent to gdrive_file_info or gdrive_list_files to confirm a path before deleting. Usage is inferable but not spelled out.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources