Skip to main content
Glama

renameFile

Renames a file or folder in Google Drive and returns updated file info.

Instructions

Renames a file or folder in Google Drive. Returns the updated file info.

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>",
      "newName": "<newName>"
    },
    "name": "renameFile"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdYesThe file or folder ID from a Google Drive URL or a previous tool result.
newNameYesNew name for the file or folder.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description bears the full burden. It discloses the return value ('updated file info') but says nothing about the required edit permissions, whether renaming preserves sharing links, whether name collisions are permitted in Drive, or whether extensions can be altered — all material 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?

Two short sentences, front-loaded with the operation and followed by the return behavior. There is no filler, though the text is so brief that it under-serves rather than over-serves.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter mutation with full schema coverage, the description covers the operation and the return shape, which is the minimum. With no annotations at all, it should also mention permission requirements and rename side effects to be complete.

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%, with both fileId and newName documented in the schema itself, so the baseline of 3 applies. The description adds no extra meaning about ID formats or naming constraints beyond what the schema already states.

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 states a specific verb and resource ('Renames a file or folder in Google Drive'), which is clear enough to distinguish it from renameSheet and renameTab by its Drive-wide scope. It stops short of explicitly naming those siblings, so an agent must infer the boundary rather than read it.

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 guidance, no prerequisites, and no pointer to alternatives such as moveFile or copyFile. The only implied guidance is the bare fact that the target is a Drive file or folder.

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