Skip to main content
Glama

deleteFile

Moves Google Drive files or folders to trash, or permanently deletes them with permanent=true for irreversible removal.

Instructions

Moves a file or folder to the trash, or permanently deletes it. Set permanent=true for irreversible deletion.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "fileId": "<fileId>"
    },
    "name": "deleteFile"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdYesThe file or folder ID from a Google Drive URL or a previous tool result.
permanentNoIf true, permanently deletes the file instead of moving it to trash.
readHandleNoCapability returned by the corresponding read tool. Required on the modern MCP runtime, including modern stdio.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden, and it does disclose the single most consequential trait: default deletion is a reversible move to trash, while permanent=true is irreversible. It omits permission/auth requirements and what happens to the file afterwards, which keeps it from a 5.

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 short sentences with zero filler; the mode of operation is front-loaded and the irreversible flag is called out second. Every sentence earns its place.

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

Completeness4/5

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

For a destructive tool with no annotations and no output schema, the description covers its behavior and the key risk. Missing detail on permissions, shared-file semantics, and the response shape is a modest gap rather than a blocking one.

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 fileId, permanent, and readHandle are all documented in the schema itself. The description restates the permanent flag's effect but adds no syntax, format, or edge-case meaning beyond that, making the baseline 3 appropriate.

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

Purpose4/5

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

The description uses a specific verb and resource ("Moves a file or folder to the trash, or permanently deletes it") and distinguishes the two deletion modes. It doesn't differentiate itself from sibling delete tools or from moveFile, so it stops short of a 5.

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?

It implies the default (trash) is the normal path and that permanent=true should be chosen for irreversible deletion, which is useful guidance. However, there is no explicit when-to-use vs when-not framing, no mention of alternatives such as moveFile, and no prerequisites stated.

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