Skip to main content
Glama

Gdrive Write File

gdrive_write_file
Destructive

Writes or overwrites a text file in the synced Google Drive folder — it uploads automatically via the official client. Overwriting an existing file requires confirm=true (the first call returns a preview instead); creating a new file needs no confirm.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute path under a Google Drive mount
confirmNoRequired (true) to OVERWRITE an existing file. Not needed to create a new file.
contentYesText content to write

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
bytesYes
writtenYes
overwroteYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / confirm / description
      Previous value: -"Must be true to actually write"New value: +"Required (true) to OVERWRITE an existing file. Not needed to create a new file."
  2. Changed1 schema field changed
    • changedInput schema / properties / confirm / description
      Previous value: -"Required (true) to OVERWRITE an existing file. Not needed to create a new file."New value: +"Must be true to actually write"
  3. Changed1 schema field changed
    • changedInput schema / properties / confirm / description
      Previous value: -"Must be true to actually write"New value: +"Required (true) to OVERWRITE an existing file. Not needed to create a new file."
  4. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the danger is known. The description adds a genuinely useful behavioral detail beyond them: the two-phase confirm flow where the first call returns a preview instead of writing. It stops short of covering auth/permission needs or failure behavior.

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?

Two dense sentences, front-loaded with the action and scope, followed immediately by the confirm rule. No filler.

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?

An output schema exists so return values need no explanation, and annotations carry the destructive profile. The description covers the non-obvious preview/confirm flow well; only minor gaps remain (e.g., what a subsequent confirming call must re-supply, permission requirements).

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%, so the schema already documents path, content, and confirm. The description's restatement of the confirm rule is accurate but largely redundant with the schema, so baseline 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 (writes or overwrites) and resource (a text file), and scopes it precisely to the synced Google Drive folder, which distinguishes it from siblings like file_write, onedrive_write_file, and gdrive_read_file.

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?

Gives clear conditional guidance: overwriting requires confirm=true and a first call returns a preview, while creating a new file needs no confirm. It does not explicitly contrast with alternative tools (e.g., file_write or onedrive_write_file), so it falls short of full routing guidance.

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