Skip to main content
Glama

transfer_ownership

Destructive

Transfer ownership of a Google Drive file or folder to another user by email, returning the new permission ID and notifying the recipient.

Instructions

Transfer ownership of a file or folder to another user.

Args: file_id: The Google Drive file or folder ID. new_owner_email: Email address of the new owner. send_notification: Whether to send a notification email to the new owner. Defaults to True, and must stay True: Drive refuses any ownership transfer whose notification is disabled.

Returns: Confirmation with fileId, new_owner, and permissionId. {"error": ...} if send_notification is False, before any API call.

Note: Requires OAuth auth — service accounts have no personal Drive identity to transfer ownership to/from, so Drive's API rejects the transfer. 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>",
      "new_owner_email": "<new_owner_email>"
    },
    "name": "transfer_ownership"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYes
new_owner_emailYes
send_notificationNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, but the description adds real behavioral detail beyond them: the exact error path when send_notification is False (returned before any API call) and the auth-method prerequisite. It does not disclose the key consequence of destruction — that the previous owner loses ownership access — so a 4 rather than 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?

Front-loaded one-line purpose followed by scannable Args/Returns/Note sections. The send_notification constraint is restated in Returns, but that occurrence conveys different information (the resulting error) rather than pure duplication.

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?

Return values are covered by the output schema, and the description still adds auth and error-path context. What is missing for a destructive operation is the post-transfer state — whether the caller loses access, whether it is reversible, and what permission level is required to invoke it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description carries the full burden and does so: it documents all three parameters, including the default value for send_notification and the non-obvious invariant that it must remain True.

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?

States a specific verb and resource — 'Transfer ownership of a file or folder to another user' — naming both the object affected and the target of the transfer. This is unambiguous and clearly distinct from the listed sibling tools (copy_file, create_shortcut, etc.), which have different semantics.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides a strong prerequisite (requires OAuth; service accounts are rejected, with a pointer to server://auth-status) and a hard constraint on send_notification. It lacks explicit when-to-use-vs-alternative guidance (e.g., versus copy_file or sharing permissions), so it stops short of full routing guidance.

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