Skip to main content
Glama

Drive Update File Metadata

drive_update_file_metadata
Idempotent

Rename a Drive file and edit its description, public properties, or private app properties without touching its content or folder location. Only the fields you pass are changed.

Instructions

Rename a Drive file or change its description and custom properties. Only the fields you pass change. To move it between folders use drive_move_file, and to replace its content use drive_upload_file with file_id. Returns status 'ok' and file (id, name, kind, mime_type, size, size_bytes, parent_ids, drive_id, web_url, trashed; null where the change does not report it).

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

Input Schema

NameRequiredDescriptionDefault
nameNoNew file name; omit to keep the current name.
file_idYesDrive file ID: the id field of Drive and search_workspace results, or the long ID in a Drive, Docs, Sheets or Slides URL.
propertiesNoPublic key/value pairs (string values) to add or change; keys not listed are kept.
descriptionNoNew description text; an empty string clears it, omit to keep it.
app_propertiesNoPrivate key/value pairs (string values) to add or change, visible only to requests made with this server's OAuth client; keys not listed are kept.
remove_property_keysNoPublic property keys to delete from the file.
remove_app_property_keysNoPrivate app property keys to delete from the file.

Output Schema

NameRequiredDescriptionDefault
fileNo
statusNoMachine-readable operation status.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly=false, idempotent=true, destructive=false, openWorld=true, so the safety bar is partly covered. The description adds genuinely non-obvious behavior beyond that: patch semantics where only supplied fields mutate and all others are preserved. It does not call out that remove_property_keys performs an irreversible deletion, which is the one behavior worth flagging for a destructiveHint=false 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?

Three front-loaded sentences: purpose, mutation semantics, alternatives, then return shape. The trailing field enumeration (id, name, kind, mime_type, size, ...) is largely duplicative given an output schema exists and is the one segment that does not earn its length.

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 7-parameter partial-update tool, the definition covers purpose, mutation semantics, sibling routing, and outcome. With an output schema present, the return-value sentence is redundant rather than missing, so nothing an agent needs to call this correctly is absent.

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% and the schema already spells out omit-to-keep and empty-string-clears semantics per field, so the description adds only the generalized 'only the fields you pass change' framing. That is a useful summary but not new per-parameter meaning, so the baseline of 3 applies.

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 set and resource — rename a Drive file or change its description and custom properties — and explicitly delimits scope against drive_move_file and drive_upload_file. An agent can distinguish this from every nearby sibling without opening a schema.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use rule ('Only the fields you pass change') plus two named alternatives with their triggering conditions: moving goes to drive_move_file, content replacement goes to drive_upload_file with file_id. Nothing about routing is left to inference.

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