Skip to main content
Glama

Rename a Google Drive file

connections_storage_rename_google_drive_file
Destructive

Rename one file or folder in the connected Google Drive. Only the name changes. A file another person shared with the member is read-only from Connections, so the answer refuses it with the reason; only files they own or files in their shared drives can be renamed.

Input Schema

NameRequiredDescriptionDefault
nameYesThe new name.
personNoLinked person to run this call as (first name). Omit to run as the connection's holder.
dry_runNoPreview only.
file_idYesThe Drive id, from search_google_drive.
projectNoWorkspace to run this call in (id or name).
current_nameNoOptional. The name it has now, shown on the confirmation card.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / dry_run / description
      Previous value: -"Preview only; nothing is written."New value: +"Preview only."
  2. Changed2 schema fields changed
    • changedInput schema / properties / dry_run / description
      Previous value: -"Preview only: return what this call would do, with nothing written."New value: +"Preview only; nothing is written."
    • addedInput schema / properties / person
      Added value: +{
      +  "description": "Linked person to run this call as (first name). Omit to run as the connection's holder.",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / project
      Added value: +{
      +  "description": "Workspace to run this call in (id or name).",
      +  "type": "string"
      +}
  4. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already flag a non-read-only, destructive, open-world operation, so the bar is lower; the description still adds real value by scoping the blast radius ("Only the name changes") and by disclosing the permission rule and the refusal-with-reason behavior for externally shared files. It stops short of describing the result payload or how the confirmation card behaves, which are left to the schema.

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?

Three short sentences, front-loaded with the action and immediately followed by the scope limit and the permission caveat; nothing is redundant. The final permission sentence is slightly convoluted in its clause structure but still earns its place.

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?

With six fully documented parameters, no output schema, and annotations covering safety, the description supplies the one thing structured fields cannot: the ownership rule that decides success versus refusal. Return shape and confirmation-card flow are left implicit, which is acceptable given the absence of an output schema.

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%, including file_id provenance ("from search_google_drive"), the optional current_name for the confirmation card, dry_run preview, and person/project scoping, so the schema carries parameter meaning. The description adds only the target-type hint (file or folder) and no syntax or format detail beyond it, making the baseline 3 appropriate.

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?

"Rename one file or folder in the connected Google Drive" gives a specific verb plus resource and bounds the operation to a single item, which separates it from bulk or content-level siblings such as move_google_drive_files or write_google_drive_file. It does not name any sibling explicitly, so the differentiation rests on the verb alone.

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?

The description states a clear precondition and exclusion: files shared with the member are read-only and will be refused, while owned files and shared-drive files can be renamed. It does not point to an alternative tool (e.g., move or copy) when the goal is something other than renaming, so the when-to-use picture is clear but the alternatives routing is absent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources