Skip to main content
Glama

OneDrive Write File

onedrive_write_file
Destructive

Writes text content to a file in OneDrive. 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 to the file in OneDrive
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

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A4/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, and the description adds real value beyond them by disclosing the preview-then-confirm overwrite flow and its two-call behavior. It does not mention permission/auth requirements or how the preview call differs in return payload.

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 sentences, no padding; the core action comes first and the risky overwrite/confirm behavior is front-loaded before the trivial create case.

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?

With an output schema present the description need not explain return values or the preview payload, and it correctly covers the create-vs-overwrite decision. What is missing is small: no note on OneDrive path expectations or overwrite permissions, but nothing an agent needs to invoke it correctly.

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 all three parameters are already documented in the schema. The description reinforces confirm's create-vs-overwrite semantics but adds no syntax, path format, or encoding detail beyond what the schema states. Baseline 3 applies.

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?

States a specific verb and resource ('Writes text content to a file') and pins the backend as OneDrive, which separates it from gdrive_write_file and file_write. It stops short of explicitly contrasting those siblings, so it is clear but not fully differentiated by text.

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 concrete when-to-use guidance on the confirm flag: overwrite requires confirm=true and previews on the first call, while creating a new file needs no confirm. No explicit routing to alternative write tools (gdrive_write_file, file_write) is offered.

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