Skip to main content
Glama

rename_file

Destructive

Rename a Google Drive file or folder by specifying its file ID and new name, returning the updated file ID, name, and parent folder ID.

Instructions

Rename a file or folder in Google Drive.

Args: file_id: The ID of the file or folder to rename. new_name: The new name.

Returns: Updated fileId, name, and parent folder ID.

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_name": "<new_name>"
    },
    "name": "rename_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYes
new_nameYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, so the safety profile is partly covered, and the description adds that both files and folders can be renamed plus a short note on what is returned. It does not disclose what happens on name collisions, whether extensions are preserved, or what permissions are needed — meaningful gaps for a mutation tool.

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?

Front-loaded one-line purpose followed by compact Args and Returns sections — nothing extraneous. The Returns section partially duplicates the existing output schema, which is minor waste but not harmful.

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 two-parameter tool with an output schema and annotations, the definition covers purpose, both parameters, and return shape, which is enough to invoke it correctly. It only lacks edge-case behavior (collision handling, error conditions) that would make it fully self-sufficient.

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 burden, and it does document both parameters via an Args block: file_id is identified as the ID of the file or folder to rename (clarifying the allowed entity types), and new_name as the target name. The new_name explanation is close to tautological, keeping it from 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 description opens with a specific verb and resource ("Rename a file or folder in Google Drive"), which is unambiguous and distinct from sibling operations like copy_file or upload_file. It stops short of explicitly contrasting itself with a sibling such as batch_update, but the operation is self-identifying.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, no mention of alternatives (e.g. copy_file for producing a renamed duplicate), and no preconditions such as required permissions. The agent must infer usage entirely from the tool name.

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