Skip to main content
Glama

upload_file

Upload base64-encoded files to SharePoint document libraries with optional folder targeting and overwrite control.

Instructions

Upload a file to a document library. Content must be base64-encoded.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
libraryNameYes
folderPathNoTarget sub-folder (optional).
fileNameYesFile name including extension.
contentYesBase64-encoded file content.
overwriteNoOverwrite if file exists. Default: true.
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the base64 encoding requirement, which is useful, but fails to cover critical aspects like authentication needs, error handling (e.g., invalid paths or permissions), rate limits, or what happens on success/failure. For a mutation tool with zero annotation coverage, this is a significant gap.

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 a single, efficient sentence that front-loads the core purpose and includes a critical constraint (base64 encoding). There is no wasted verbiage, and every word earns its place, making it highly concise and well-structured.

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?

Given the tool's complexity (a mutation operation with 5 parameters), lack of annotations, and no output schema, the description is incomplete. It misses essential context such as return values, error conditions, permissions, or side effects, leaving the agent with insufficient information for reliable invocation in a real-world scenario.

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 high at 80%, with most parameters well-documented in the schema (e.g., 'folderPath' as optional, 'overwrite' default). The description adds value by specifying that content must be base64-encoded, which clarifies the 'content' parameter beyond the schema's generic description. However, it doesn't fully compensate for the 20% gap (e.g., no details on 'libraryName' format), aligning with the baseline for high coverage.

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?

The description clearly states the action ('upload') and target ('file to a document library'), which distinguishes it from sibling tools like 'download_file', 'delete_file', or 'list_files'. However, it doesn't explicitly differentiate from other file-related operations beyond the verb choice, missing specific sibling comparison.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives like 'download_file' or 'delete_file', nor does it mention prerequisites such as authentication or library existence. It lacks explicit when/when-not instructions or named alternatives, offering only basic operational context.

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/LukasSevcik/sharepoint-mcp'

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