Skip to main content
Glama
Matthew3957

ai-toolkit

by Matthew3957

drive_rename_file

Rename a Drive file or folder in place while keeping its ID and location unchanged, so existing links continue to work. Get notified if the new name conflicts with another item.

Instructions

Rename a Drive file or folder in place.

The id and location are unchanged, so links keep working. Drive allows two files with the same name in one folder, so this does not stop you creating a duplicate name — but it reports when the new name is already in use alongside the target, since that ambiguity is what makes later path-based tool calls fail.

file is a Drive file id or a path from My Drive root. new_name is the new name, without any path separators. Returns the old and new name and path.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYes
new_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations provided, the description carries full responsibility for behavioral disclosure. It covers key side effects: links keep working, duplicate names are permitted but warned about, and path-based tool calls can fail due to ambiguity. It could mention permission requirements or irreversibility, but the core behavioral traits are well disclosed.

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?

The description is compact and front-loaded with the core action circles. Each sentence adds distinct value: the operation, the in-place guarantee and duplicate caveat, parameter semantics, and return value. No filler or redundancy.

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

Completeness5/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 no annotations gliding on a good output schema, this description is complete. It explains input formats, a critical failure mode, and return contents. An agent has everything needed to invoke the method correctly.

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 must fully define the parameters, and it does. It specifies that 'file' is a Drive file id or a path from My Drive root, and 'new_name' must not contain path separators. This adds essential meaning that the bare string schema lacks.

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?

The description opens with a specific verb and resource: 'Rename a Drive file or folder in place.' It immediately distinguishes itself from sibling tools like drive_move_file and drive_update_file by clarifying that the id and location are unchanged.

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 clearly implies when to use this tool: when the goal is renaming without changing location. It does not explicitly name sibling alternatives or state when not to use them, but 'in place' and 'id and location are unchanged' provide strong contextual guidance.

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