Skip to main content
Glama
M365 Assistant MCP Server

M365 Assistant MCP Server

by ryaker

onedrive-download

Retrieves a download URL for a OneDrive file using its item ID or path, enabling direct file access and transfer.

Instructions

Get a download URL for a file in OneDrive. Either 'itemId' or 'path' must be provided.

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

Input Schema

NameRequiredDescriptionDefault
pathNoPath to the file (alternative to itemId)
itemIdNoID of the item to download

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.7/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. It usefully discloses that the tool returns a URL rather than downloading content, and that at least one selector must be supplied — a constraint the schema does not enforce (required is empty). It omits auth requirements, URL lifetime/expiry, and whether the URL is publicly accessible, which matter for a download-URL tool.

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 short sentences with no waste. The core purpose is front-loaded and the selector constraint follows immediately.

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?

For a simple two-parameter tool with no output schema, the description covers the purpose, the return value type (a URL), and the selector constraint. The remaining gaps — auth needs and URL validity window — are minor but non-trivial for a download operation.

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 100%, so the baseline is 3. The description adds real meaning beyond the schema by stating the at-least-one-of constraint between itemId and path, which the schema's empty required list does not express. It does not clarify precedence when both are provided, keeping it below 5.

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 states a specific verb and resource: 'Get a download URL for a file in OneDrive.' It makes clear this retrieves a URL rather than the file bytes, which distinguishes it from siblings like onedrive-upload and onedrive-delete. It does not explicitly contrast with other retrieval tools such as onedrive-list or onedrive-search, so it falls just 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 Guidelines3/5

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

Usage is implied by the verb 'download' and the file-selection parameters, but there is no explicit when-to-use or when-not guidance, and no direction on which of itemId or path to prefer when both are known. The agent must infer the context.

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