Skip to main content
Glama

Share File

file_share

Create a sharing link for a OneDrive file. Control access by setting permission type (view/edit) and link scope (anonymous/organization).

Instructions

✏️ Create a sharing link for a OneDrive file (requires user confirmation recommended)

Creates a sharing link that allows others to access the file. Permission types control what recipients can do with the file.

Args: file_id: The file ID to share account_id: Microsoft account ID permission_type: Type of permission - "view" or "edit" (default: "view") scope: Link scope - "anonymous" or "organization" (default: "anonymous")

Returns: Sharing link details including the web URL

Raises: ValueError: If file_id is invalid or permission_type/scope is unsupported

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_idYes
account_idYes
permission_typeNoview
scopeNoanonymous

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Beyond annotations (readOnlyHint=false, destructiveHint=false), the description adds that it 'creates a sharing link' and requires user confirmation. It also lists raised exceptions (ValueError). This gives the agent useful behavioral context beyond the structured annotations.

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 concise, well-structured with a summary line, separate Args/Returns/Raises sections, and no redundant information. 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 complexity (4 parameters, output schema exists), the description covers purpose, parameter semantics, return values (including web URL), and error conditions. No critical information is missing.

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

Parameters5/5

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

The input schema has 0% description coverage, so the description fully compensates by detailing all four parameters: file_id, account_id, permission_type (with default 'view'), and scope (with default 'anonymous'), explaining their roles. This adds complete meaning that the schema alone 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 states 'Create a sharing link for a OneDrive file', specifying the action, resource, and includes a recommendation for user confirmation. It distinguishes itself from sibling file tools like file_copy or file_delete by focusing on sharing links.

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?

The description mentions 'requires user confirmation recommended' but does not provide explicit guidance on when to use this tool versus alternatives or when not to use it. There is no mention of prerequisites or exclusions.

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