Skip to main content
Glama
BiteFoundry SharePoint MCP Server

BiteFoundry SharePoint MCP Server

download_file

Download a OneDrive or SharePoint file to local disk, returning its path, MIME type, size, and item identifiers for later use.

Instructions

Download a OneDrive or SharePoint file to local disk, returning { ok, path, file_name, mime_type, size_bytes, is_image, drive_id, item_id, e_tag, c_tag }. Transfers the whole file, so the call takes longer as the file grows.

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": "download_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
dirNo
pathNo
siteNo
driveNo
item_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/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 contribute real behavior: the exact return object fields and the warning that transfer time scales with file size. It omits other behavior an agent needs for a write-to-disk operation, such as whether an existing local file is overwritten, size limits, and authentication requirements.

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 tight sentences, front-loaded with the action and destination, then the return shape, then the performance caveat. Nothing is redundant.

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?

The return shape substitutes well for the missing output schema and the duration note is valuable, but for a tool with 5 fully-optional, undocumented parameters and no annotations, the definition never explains how to actually target a file. An agent could call it with no arguments and have no idea what happens.

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

Parameters2/5

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

Schema description coverage is 0% across 5 parameters, so the description must compensate and largely does not — dir, path, site, drive, and item_id are all unexplained and all optional, yet no clue is given about how they combine to locate a file. The only indirect help is that drive_id and item_id appear in the returned fields, hinting they identify the source item.

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 and resource ('Download a OneDrive or SharePoint file to local disk'), which is enough to separate it from read_text_file, get_file_info, and upload_file without opening the schema. It does not explicitly name a contrasting sibling, so it falls short of a 5.

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?

There is no guidance on when to choose this over read_text_file or get_file_info, and no hint about when a whole-file transfer is appropriate (e.g. large files or binary content). The description also never says what prerequisite identification is needed before calling, leaving the agent to infer usage from the verb alone.

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