Skip to main content
Glama
Matthew3957

ai-toolkit

by Matthew3957

drive_trash_file

Move a Drive file or folder to trash, keeping it recoverable for 30 days instead of permanent deletion.

Instructions

Move a Drive file or folder to the trash (recoverable, not deleted).

This is deliberately trash rather than permanent deletion: the item stays restorable from Drive's trash for 30 days, which is the undo path for a wrong call. There is no hard-delete tool in this server on purpose. Trashing a folder trashes everything inside it.

file is a Drive file id or a path from My Drive root. Because this is destructive, the result echoes the resolved name, path, and id — check those against what you intended. Returns those plus restore instructions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
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 discloses that the action is destructive but recoverable for 30 days, that folder trashing cascades, and that the response echoes the resolved target for verification. It also explicitly states the absence of a hard-delete tool, making the tool's behavior fully transparent.

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 front-loaded with the core action and uses compact, focused sentences. It efficiently covers recoverability, no hard-delete tool, folder cascade, and parameter semantics. A minor redundancy exists between 'recoverable, not deleted' and 'deliberately trash', but overall the structure is tight.

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 single-parameter destructive action, the description covers purpose, parameter format, behavioral consequences, and return values (resolved name, path, id, and restore instructions). The output schema exists, and the description adds the verification guidance. Nothing essential is missing for an agent to call this tool correctly.

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?

The schema only defines 'file' as a string with no description, so the description adds essential meaning by specifying it accepts either a Drive file id or a path from My Drive root. This directly compensates for the 0% schema coverage. It could be more precise about path syntax, but the provided semantics are adequate.

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 states a specific verb (move to trash) and resource (Drive file or folder), and explicitly distinguishes from permanent deletion by noting the item is recoverable. This clearly separates it from sibling tools like drive_move_file and drive_rename_file.

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 explains that this is the trash operation and that no hard-delete tool exists in the server, which informs when this tool should be used. It also warns that trashing a folder cascades to its contents. It does not explicitly mention alternative tools like drive_move_file, but the purpose and context are clear enough.

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