Skip to main content
Glama

empty_trash

Destructive

Permanently deletes every trashed file in one drive, either your My Drive or a specified Shared Drive. Use it to clear storage irreversibly; deleted files cannot be restored.

Instructions

Permanently delete every trashed file in a single trash. This cannot be undone — unlike delete_file's default (recoverable) trash behavior, there is no restoring a file after this.

Args: drive_id: If omitted (default), empties the caller's own My Drive trash only. If set to a Shared Drive's ID (see list_drives), empties that Shared Drive's trash instead. A single call only ever targets one trash — to empty several Shared Drives' trash, call this once per drive_id.

Returns: Confirmation that the trash was emptied, echoing which drive (drive_id, or None for My Drive) was targeted.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "empty_trash"
  }
}

Input Schema

NameRequiredDescriptionDefault
drive_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, but the description goes further: it states the operation cannot be undone, that no restore is possible afterward, exactly what scope is destroyed (all trashed files in one trash only), and that multi-drive cleanup requires repeated calls. It is fully consistent with the destructive annotation.

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 opening sentence front-loads the action and irreversibility, and the structure is easy to scan. The Returns section is largely redundant given an output schema exists, so a small amount of text does not earn its place.

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 one-parameter destructive tool, the definition covers risk, scope, argument interpretation, cross-tool routing, and multi-drive mechanics. Nothing an agent needs to invoke it safely is missing.

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

Parameters5/5

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

Schema description coverage is 0% and the single drive_id parameter is otherwise bare, yet the description fully compensates: omitted/null means the caller's My Drive trash, a string must be a Shared Drive ID obtainable via list_drives, and one call targets exactly one trash.

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 scope: "Permanently delete every trashed file in a single trash." It immediately distinguishes itself from delete_file by contrasting permanent deletion with that tool's recoverable trash default, so an agent can tell the two apart without opening either schema.

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?

Gives explicit when-to-use context (emptying a trash), names the alternative behavior (delete_file's recoverable trash) as the reason to pick that tool instead when recovery matters, and specifies the per-drive invocation pattern: one call per drive_id, referencing list_drives to obtain IDs.

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

Deploy Server

Other Tools