Skip to main content
Glama

Drive Move File

drive_move_file

Move a Google Drive file or folder to another folder by specifying the destination and current parent folder IDs.

Instructions

Move a Drive file or folder to another folder. Drive allows one parent per file, so a move passes the destination in add_parent_ids and the current parent (from drive_get_file) in remove_parent_ids. To rename use drive_update_file_metadata, and to duplicate use drive_copy_file. Returns status 'ok' and file (id, name, kind, mime_type, size, size_bytes, parent_ids, drive_id, web_url, trashed; null where the change does not report it).

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": {
      "file_id": "<file_id>"
    },
    "name": "drive_move_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYesDrive file ID: the id field of Drive and search_workspace results, or the long ID in a Drive, Docs, Sheets or Slides URL.
add_parent_idsNoDestination folder ID (or a shared drive ID for its top level), as a one-element list.
remove_parent_idsNoCurrent parent folder ID to take the file out of, from parent_ids in drive_get_file.

Output Schema

NameRequiredDescriptionDefault
fileNo
statusNoMachine-readable operation status.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare mutation and non-idempotency, but the description adds the key non-obvious constraint ('Drive allows one parent per file'), which explains why add and remove parents must be supplied together. It does not cover permission requirements or what happens if remove_parent_ids is omitted (whether the file gains a second parent or the call fails), leaving a gap that matters for a mutation tool.

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?

Front-loaded with the core action, followed by the constraint, then routing to alternatives — a good ordering. The trailing enumeration of every returned field is dead weight given an output schema exists, so it is not maximally tight.

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 three-parameter mutation tool with full annotations and an output schema, the description covers purpose, the one-parent constraint, and sibling routing well. It omits failure modes (missing destination, missing remove_parent_ids, insufficient permissions), which is the main remaining hole.

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 baseline is 3, but the description adds genuine meaning: it explains the relationship between add_parent_ids and remove_parent_ids as a coupled operation and points to drive_get_file as the source of the current parent. It stops short of specifying what the server does when only add_parent_ids is passed.

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 first sentence names a specific verb and resource ('Move a Drive file or folder to another folder'), and the description explicitly distinguishes moving from renaming (drive_update_file_metadata) and duplicating (drive_copy_file). An agent can identify the correct tool without inspecting sibling schemas.

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?

It names the alternatives and the conditions that select them: rename goes to drive_update_file_metadata, duplication to drive_copy_file. It also states the prerequisite workflow — fetch the current parent via drive_get_file before calling — which is exactly the when-to-use context an agent needs.

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