Skip to main content
Glama

moveFile

Moves a Google Drive file or folder to another folder, adding the destination parent by default or removing all current parents when a true move is needed.

Instructions

Moves a file or folder to a different Drive folder. By default adds the new parent while keeping existing parents; set removeFromAllParents=true for a true move.

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>",
      "newParentId": "<newParentId>"
    },
    "name": "moveFile"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdYesThe file or folder ID from a Google Drive URL or a previous tool result.
newParentIdYesID of the destination folder. Use "root" for Drive root.
removeFromAllParentsNoIf true, removes from all current parents. If false, adds to new parent while keeping existing parents.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does valuable work disclosing that the default is an 'add parent' rather than a true move — a genuinely surprising behavior — but it is silent on permission inheritance in the new parent, whether the file remains accessible from old parents, and failure modes.

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 tight sentences with the core action first and the non-obvious default behavior immediately after. Every sentence earns its place.

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

Completeness3/5

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

Adequate for a simple three-parameter operation whose schema is fully documented, but for an unannotated mutation tool it should say more about side effects and permissions on the destination folder.

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 description coverage is 100% and all three parameters are documented in the schema, including the removeFromAllParents default. The description merely restates that flag's semantics rather than adding new meaning beyond the schema.

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?

States a specific verb and resource plus a destination scope: 'Moves a file or folder to a different Drive folder.' This is clearly distinct from copyFile, renameFile and deleteFile, though the differentiation comes from the verb rather than any explicit contrast with those siblings.

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 tells the agent when to set removeFromAllParents, which is a useful usage rule for that parameter, but it never says when to choose this tool over copyFile or renameFile, nor any prerequisites such as the destination folder needing to exist.

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