Skip to main content
Glama

Write synced text file

drive_write_file
Destructive

Writes UTF-8 text files up to 5 MB to a local Proton Drive sync folder without Proton login, creating parent directories. Desktop app syncs changes; overwrites need approval.

Instructions

Write text (max 5 MB) to a file in the local Proton Drive sync folder; no Proton login needed. Requires PROTON_DRIVE_SYNC_PATH; the desktop app must be running to sync it to the cloud. Creates parent directories locally. Overwriting an existing file needs the user's approval, which the server asks for itself. For binary content use drive_upload. The server asks the user to approve this itself when the file already exists (it would be overwritten).

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": {
      "path": "<path>",
      "content": "<content>"
    },
    "name": "drive_write_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute remote Drive path of the file to write (must start with '/'). /my-files/<rest> maps to <PROTON_DRIVE_SYNC_PATH>/<rest>; only /my-files is synced, other Drive roots are rejected. A path not starting with a Drive root is taken relative to the sync folder. E.g. /my-files/notes.txt
contentYesUTF-8 text content to write. The file will be created or overwritten.
confirmedNoOptional and ignored: the server asks the user to approve this itself. You do not need to send it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.12.0
    • changedInput schema / properties / confirmed / description
      Previous value: -"Must be true; only after the user approved this exact action."New value: +"Optional and ignored: the server asks the user to approve this itself. You do not need to send it."
  2. Changed2 schema fields changedv1.2.0
    • changedInput schema / properties / confirmed / description
      Previous value: -"Must be true. Only set after the user explicitly approved this exact action."New value: +"Must be true; only after the user approved this exact action."
    • changedInput schema / properties / path / description
      Previous value: -"Absolute remote Drive path of the file to write (must start with '/'). Mapped to the local sync folder. E.g. /my-files/notes.txt"New value: +"Absolute remote Drive path of the file to write (must start with '/'). /my-files/<rest> maps to <PROTON_DRIVE_SYNC_PATH>/<rest>; only /my-files is synced, other Drive roots are rejected. A path not starting with a Drive root is taken relative to the sync folder. E.g. /my-files/notes.txt"
  3. Changed1 schema field changedv1.0.38
    • addedInput schema / properties / confirmed
      Added value: +{
      +  "description": "Must be true. Only set after the user explicitly approved this exact action.",
      +  "type": "boolean"
      +}
  4. Addedv0.1.2

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only supply destructiveHint=true and openWorldHint=true; the description goes well beyond them by disclosing the 5 MB cap, the local-only write with deferred sync, parent-directory creation, and the fact that the server itself solicits user approval before overwriting. What it omits is the failure/return behavior after a successful write, which keeps it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The key constraints are front-loaded, but the overwrite-approval fact is stated twice in near-identical wording ('Overwriting an existing file needs the user's approval, which the server asks for itself' and the final sentence). Removing the duplicate would tighten the definition without losing information.

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 three-parameter mutation tool with no output schema, the definition covers the essential unknowns: size limit, environment prerequisite, sync dependency, directory creation, and the destructive-overwrite approval flow. Only the post-write outcome (what is returned or how to verify the write landed) is left implicit.

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 path mapping, content encoding, and the ignored 'confirmed' flag are already fully documented in the schema. The description reinforces the approval semantics but adds no syntax or format detail the schema does not already carry, 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?

The description opens with a specific verb and resource ('Write text (max 5 MB) to a file in the local Proton Drive sync folder') and immediately scopes it against the sibling that could be confused with it ('For binary content use drive_upload'). An agent can distinguish this from drive_upload and drive_read_file without opening either 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?

It states the operative preconditions (PROTON_DRIVE_SYNC_PATH must be set, the desktop app must be running to reach the cloud) and names the explicit alternative for binary payloads. The 'when to use vs. when not' decision is fully determined by the text.

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