Skip to main content
Glama

Get File Download URL

file_download_url
Read-onlyIdempotent

Retrieve a temporary direct download link for a OneDrive file. The URL allows downloading without authentication and expires after a short period.

Instructions

📖 Get direct download URL for a OneDrive file (read-only, safe for unsupervised use)

Returns a temporary download URL that can be used to download the file directly without authentication. The URL expires after a short period.

Args: file_id: The file ID to get download URL for account_id: Microsoft account ID

Returns: Dictionary containing the download URL and file metadata

Raises: ValueError: If file_id is invalid or file not found

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_idYes
account_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false. The description adds that the URL expires after a short period and raises ValueError for invalid files, going beyond annotations to disclose important behavioral traits.

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 brief and well-structured with an introductory sentence, Args/Returns/Raises sections. No superfluous content; every sentence adds value.

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

Completeness5/5

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

Given the tool's simplicity (2 required params, clear read-only behavior, output schema present), the description fully covers input, output, and error conditions without requiring additional detail.

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?

Input schema has no descriptions (0% coverage). The description provides clear, concise explanations for both parameters: 'file_id: The file ID to get download URL for' and 'account_id: Microsoft account ID', adding meaning where schema lacks.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly identifies the tool as getting a temporary download URL for a OneDrive file, with the verb 'get' and specific resource 'download URL'. It distinguishes from sibling tools like file_get or file_share by focusing on direct download via URL.

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

Usage Guidelines4/5

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

The description states it is 'read-only, safe for unsupervised use' and explains the URL is temporary and expires. This provides context for when to use, but does not explicitly compare to alternatives or state when not to use.

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/robin-collins/m365-mcp'

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