Skip to main content
Glama

Update File

file_update
Idempotent

Replace the content of a specified OneDrive file with a local file. Provide the file ID, local path, and account ID.

Instructions

✏️ Replace OneDrive file content with local file (requires user confirmation recommended)

Args: file_id: Target OneDrive file identifier to replace. local_file_path: Absolute path to the replacement file. Validated via ensure_safe_path to block traversal and enforce workspace roots. account_id: Microsoft account identifier.

Returns: Updated file metadata returned by Microsoft Graph.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_idYes
local_file_pathYes
account_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Beyond annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=true), the description adds critical behavioral details: it performs a replacement (modification), validates local_file_path with ensure_safe_path to prevent traversal, and recommends user confirmation. These traits are not fully captured by annotations alone.

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 extremely concise: one line summary with emoji, then clear argument and return sections. Every sentence adds value, with no fluff 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?

Given the tool's complexity (3 required string params, output schema exists), the description covers the operation, parameter details, validation, and user confirmation recommendation. It is complete for an agent to select and invoke correctly, especially with an output schema.

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?

With 0% schema coverage, the description fully explains each parameter: file_id is 'target OneDrive file identifier', local_file_path is 'absolute path... validated via ensure_safe_path', and account_id is simply identified. This adds significant meaning beyond the bare schema names.

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 clearly states 'Replace OneDrive file content with local file', using a specific verb and resource. This distinguishes it from sibling tools like file_copy (copy), file_create (create new), file_delete (delete), etc., which have different purposes.

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

Usage Guidelines3/5

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

The description implies usage for content replacement and includes a recommendation for user confirmation. However, it does not explicitly state when to use versus alternatives, nor does it provide exclusions or conditions for use. Sibling tools are not mentioned for comparison.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/robin-collins/m365-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server