Skip to main content
Glama

copy_file

Destructive

Copy a Google Drive file to a new name or destination folder, returning the new file’s ID, name, MIME type, parent, and link.

Instructions

Copy a file in Google Drive.

Args: file_id: The ID of the file to copy. new_name: Name for the copy. Defaults to 'Copy of '. folder_id: Destination folder ID. Defaults to the same folder as the original.

Returns: fileId, name, mimeType, parent, and webViewLink of the new copy.

Note: Requires OAuth or ADC auth. Service accounts cannot copy files into personal Drive (no storage quota). Works on Shared Drives regardless of auth method. Check server://auth-status for your current auth method.

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": "copy_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYes
new_nameNo
folder_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

The Note adds genuinely non-obvious behavioral context that annotations do not convey: OAuth/ADC requirement, service accounts failing on personal Drive due to storage quota, Shared Drive behavior, and a pointer to server://auth-status. However, destructiveHint=true is never explained - the description omits whether an existing same-named file in the destination is overwritten - leaving the riskiest trait undisclosed.

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?

The purpose line is front-loaded, then Args, Returns, and Note sections follow in a scannable order with no filler. The Returns block is slightly redundant given an output schema exists, but it is short enough not to waste space.

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 three-parameter mutation with full auth-context complexity, the definition covers purpose, per-parameter defaults, return shape, and environment prerequisites. The only residual gap, overwrite behavior under destructiveHint, is minor relative to how much the description already supplies.

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 description coverage is 0%, so the description must carry the load, and it does: each of the three parameters gets meaning plus default behavior ('Defaults to Copy of <original name>', 'Defaults to the same folder as the original'). It does not cover error cases such as an invalid file_id or nonexistent folder_id, which keeps it below a 5.

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 first line states a specific verb and resource ('Copy a file in Google Drive'), which is immediately distinguishable from sibling operations such as move_file, rename_file, or download_file. It does not explicitly name any alternative for comparison, 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?

Usage context is implied by the operation itself and enriched by the Note about auth methods and Shared Drives, but there is no explicit when-to-use/when-not-to-use guidance or routing to alternatives (e.g., when to prefer download_file or upload_file). The agent must infer the selection criteria.

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