Skip to main content
Glama
M365 Assistant MCP Server

M365 Assistant MCP Server

by ryaker

onedrive-upload

Upload a small file (under 4 MB) to OneDrive at a specified path and choose how to handle name conflicts.

Instructions

Upload a small file (< 4MB) to OneDrive

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": "onedrive-upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesDestination path including filename (e.g., '/Documents/myfile.txt')
contentYesFile content to upload
conflictBehaviorNoBehavior when file exists: 'rename' (default), 'replace', or 'fail'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden: it does disclose the practical size limit, which is genuine behavioral information absent from the schema. However, it says nothing about permissions/auth requirements, what happens to an existing file, or what the call returns, which matters for an upload with a 'replace' conflict option.

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?

A single front-loaded sentence with zero padding and the most important constraint (size) placed immediately after the verb. It is efficient, though the extreme brevity leaves little room for any routing or behavioral context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations and no output schema, the description should explain the safety profile of an upload (possible overwrite via conflictBehavior) and what the caller gets back. It covers only the size limit, leaving mutation semantics and response expectations unaddressed for a 3-parameter write tool.

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% and the enum values for conflictBehavior are documented in the schema itself, including the default. The description adds no syntax, format, or constraint detail about path or content beyond what the schema already provides.

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 ('Upload') and resource ('OneDrive') plus a size constraint (< 4MB) that implicitly separates it from the sibling onedrive-upload-large. It does not explicitly name that sibling, so the differentiation relies on the agent noticing the size qualifier.

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 '< 4MB' qualifier implies when to pick this over a large-file variant, but the description never states an alternative or exclusion explicitly. There is no mention of prerequisites such as authentication or target drive/site selection, leaving usage context to inference.

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