Skip to main content
Glama

drive_delete_file

Destructive

Move a Google Drive file to the trash with human approval. First call returns a preview and request_id; approve out of band, then call again to execute. File stays restorable.

Instructions

Move a Google Drive file to the trash. TWO-PHASE, HUMAN-APPROVED: the first call (no request_id) executes nothing — it returns status=approval_required with a preview of exactly what would happen and a request_id. A human approves out of band (GigaMail console, CLI or Telegram, behind Windows Hello / Touch ID); the second call with that request_id executes the payload that was approved (the approved arguments, not the ones passed the second time). Requests expire (default 15 min); identical pending requests are deduplicated; more than 20 requests/hour per tool are refused (status=rate_limited). Every phase is written to the audit log. The file goes to the Drive trash, from where the user can restore it; nothing is erased permanently. Approval is still required because the file disappears from where the user expects it. The preview shows the file id and name. Returns {success}. Requires a connected Google account.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_idYesFile id from drive_list_files.
request_idNoOmit on the first call. On the first call the tool does NOT execute: it returns status=approval_required, a preview and a request_id. A human must approve that request_id out of band (GigaMail console, `gigamail approvals approve`, or Telegram — all behind Windows Hello / Touch ID). Then call again with the same request_id to execute. The agent cannot approve; repeating the call without approval just returns awaiting_approval.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.3

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and idempotentHint=false, and the description adds value beyond that: the trash-vs-permanent distinction, the fact that approved arguments (not the second call's arguments) execute, expiry (default 15 min), dedup of identical pending requests, and a 20 req/hour rate limit returning status=rate_limited. It also names auth requirements (connected Google account) and audit logging. No annotation contradiction.

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

Conciseness3/5

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

Front-loaded with the purpose and the two-phase model, which is good. However it is long and mixes several distinct concepts (approval channels, expiry, dedup, rate limits, trash semantics, audit log, return shape) into dense prose without structure. Dense but each clause carries information; the cost is readability, not filler.

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, human-in-the-loop mutation with no output schema, the description covers execution semantics, safety, recovery path, rate limits, expiry, and auth. An agent has everything needed to call it correctly in both phases and to explain the outcome to a user.

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

Parameters4/5

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

Schema coverage is 100%, so the schema carries parameter detail. The description reinforces the critical semantic for request_id (execute the approved payload, not the second call's arguments) and notes file_id must come from drive_list_files. This adds real behavioral meaning over the schema for the request_id life-cycle.

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+resource ('Move a Google Drive file to the trash') and disambiguates from siblings like delete_message or delete_folder. The clarification that the file lands in trash (recoverable), not permanent erasure, sharpens the purpose beyond what the name implies.

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

Usage Guidelines5/5

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

The two-phase protocol is spelled out explicitly: first call with no request_id does not execute, gets a request_id; human approval is required out-of-band before a second call executes. It even names what happens if the agent tries to shortcut approval (returns awaiting_approval). The agent knows exactly when to call and how to proceed.

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