Skip to main content
Glama

Copy File

file_copy

Copy a file to any folder in OneDrive with an optional new name. Track the asynchronous operation using the returned location URL.

Instructions

✏️ Copy a file within OneDrive (requires user confirmation recommended)

Creates a copy of a file in a specified destination folder. The copy operation is asynchronous and may take time for large files.

Args: file_id: The file ID to copy destination_folder_id: The destination folder ID account_id: Microsoft account ID new_name: Optional new name for the copied file

Returns: Copy operation status with location URL to monitor progress

Raises: ValueError: If file_id or destination_folder_id is invalid

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_idYes
destination_folder_idYes
account_idYes
new_nameNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already flag it as non-read-only, non-destructive, non-idempotent, and open-world. The description adds valuable context: the operation is asynchronous and may take time for large files, and it requires user confirmation. No contradictions.

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?

The description is concise with a clear structure: purpose sentence, then Args, Returns, Raises sections. The emoji and 'recommended' comment are slightly informal but do not add unnecessary length. Every sentence contributes value, though some details could be condensed.

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?

Given the presence of an output schema and sibling tools, the description covers purpose, async behavior, parameters, returns, and errors. Missing details include default naming behavior when new_name is omitted and permission requirements, but overall it's fairly complete.

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 0%, so the description carries the burden. It provides brief explanations for each parameter (e.g., 'file_id: The file ID to copy'), but lacks details on formats, sources, or constraints (e.g., where to find account_id, naming rules for new_name). This is minimal but sufficient for basic use.

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 'Copy a file within OneDrive', specifying the verb 'copy' and resource 'file'. It distinguishes from sibling tools like file_move (which moves instead of copies) and file_create (which creates a new empty file).

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 via 'copy a file' and notes it's asynchronous, but does not explicitly state when to use this tool versus alternatives like file_move or file_rename. It mentions 'requires user confirmation recommended' but lacks prerequisites or exclusions.

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