Skip to main content
Glama

copyFile

Creates a copy of a Google Drive file or document, optionally with a new name or parent folder, and returns the new copy’s ID and URL.

Instructions

Creates a copy of a file or document in Google Drive. Returns the new copy's ID and URL.

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

Input Schema

NameRequiredDescriptionDefault
nameNoName for the copied file (matches the Drive API's own "name" field). If not provided, will use "Copy of [original name]".
fileIdYesThe file or folder ID from a Google Drive URL or a previous tool result.
newNameNoDeprecated alias for "name", kept for backward compatibility. If both are given, "name" wins.
parentFolderIdNoID of folder where copy should be placed. If not provided, places in same location as original.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It adds the return shape (new copy's ID and URL), which is useful, but says nothing about whether the copy inherits sharing permissions, whether the original is untouched, what scope of auth is needed, or how large files/binary types are handled.

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, zero waste, purpose front-loaded and return value appended. Nothing could be cut without losing information.

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 four-parameter, single-required-argument copy operation with full schema coverage, this covers what it does and what it returns. The remaining gap is behavioral rather than structural: no annotations exist to cover permission inheritance or side effects, which the description does not fill in.

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 every parameter is already documented, including the name/newName precedence and the parentFolderId fallback. The description adds no parameter-level meaning beyond that baseline, and slightly understates fileId by describing it as "file or document" when the schema also permits folder IDs.

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 ("Creates a copy of a file or document in Google Drive") plus the return values. It is clearly separable from siblings like moveFile, renameFile, and copyFormatting by virtue of the copy verb, though it never explicitly contrasts with them.

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 is implied by the verb — you call it when you want a duplicate — but there is no explicit guidance on when to copy versus upload, move, or rename, and no stated preconditions or exclusions. Adequate for a simple, obvious operation, but no routing help.

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