Skip to main content
Glama
BiteFoundry SharePoint MCP Server

BiteFoundry SharePoint MCP Server

upload_file

Upload local files, base64 bytes, or text content to SharePoint and OneDrive, using chunked upload sessions for large files and eTag-safe replacements.

Instructions

Upload a local file, base64 bytes, or text content. Files at least 4 MiB and conditional replacements use an upload session, which sends the file in chunks of about 3 MiB, one request each.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNo
driveNo
item_idNo
if_matchNoeTag precondition for replacement via an upload session at any size
file_nameNo
parent_idNoFolder item ID, or a path starting with / such as /Team Docs
local_pathNo
content_textNo
content_base64No
conflict_behaviorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose meaningful internals: chunked session uploads of ~3 MiB per request for large or conditional replacements. It omits permissions, overwrite/replace consequences, and failure behavior, which matter for a mutation tool with a conflict_behavior parameter.

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 dense sentences with zero filler; the content-source enumeration comes first and the non-obvious session/chunking behavior follows. Nothing repeats the schema verbatim.

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

Completeness3/5

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

For a 10-parameter, zero-required mutation tool with no annotations and no output schema, the description explains the upload mechanics well but leaves the identifier parameters and conflict_behavior unexplained and gives no signal about what the call returns or how partial failures appear.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 20%, so the description has to compensate, and it does for the highest-risk choice: it distinguishes local_path vs content_base64 vs content_text as alternative sources and explains that if_match drives conditional replacement via a session. Still silent on site, drive, item_id, parent_id, file_name, and conflict_behavior semantics.

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 enumerates the three accepted content sources (local file, base64 bytes, text), which lets an agent map intent to the right parameter family. It doesn't name a sibling or explicitly disambiguate, but no sibling in the list performs an upload, so confusion risk is low.

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?

Gives a real usage rule — when the upload session path triggers (files ≥ 4 MiB and conditional replacements) plus the chunk size — but never states prerequisites, when to prefer one content source over another, or what conflict_behavior to pick. Usage is implied rather than instructed.

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