Skip to main content
Glama

Share File

drive_share

Share a OneDrive file or folder by link or by inviting named people, requiring user confirmation before access is granted.

Instructions

Share a OneDrive file or folder by link (mode='link') or by inviting named people (mode='invite'). A view or edit link works for anyone who has it. Always requires confirm=true after the user approves who gets access. Returns the link or the invitation results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYesShare by link or invite specific people.
roleNoinvite: access level.
confirmYesMust be true to grant this access; set only after the user approves.
item_idYesFile or folder to share (not the OneDrive root).
messageNoinvite: note in the invitation email.
passwordNoOptional password for the link or invitation.
link_typeNolink: view (read-only), edit, or embed (files only).
account_idNoAccount ID or email address. Omit when only one account is signed in.
expires_atNoOptional expiry (invite expiry needs a premium OneDrive).
recipientsNoinvite: people to share with.
require_sign_inNoinvite: recipients must sign in.
send_invitationNoinvite: email the recipients.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYes
createdYes
summaryYesOne-line human summary. The tool's text content is this result serialized as JSON (summary included), so a client that ignores structuredContent still sees every field.
link_urlYes
recipientsYes
permission_idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations cover the safety profile (not readOnly, not idempotent, not destructive, openWorld), so the bar is lower. The description adds genuinely useful behavior: that a view/edit link is usable by anyone who holds it, and that confirm=true is mandatory and must follow user approval — an approval-gate workflow the annotations do not convey.

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?

Three tight sentences with the core purpose and modes front-loaded, then the mandatory confirm gate, then the return shape. Nothing is padded and no sentence restates the title.

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?

With 12 parameters fully documented in the schema and an output schema present, the description need not explain return values, and it correctly avoids that. It covers purpose, mode choice, and the approval gate; the only minor gap is that it doesn't flag the OneDrive-root exclusion noted in the item_id schema or account scoping, though the schema handles those.

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 100%, so every one of the 12 parameters, including enums for mode, role, and link_type, is already documented in the schema. The description restates mode and confirm but adds no syntax or format detail beyond the structured fields, so the baseline 3 applies.

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 gives a specific verb (share) and resource (OneDrive file or folder) and distinguishes the two operating modes, link vs invite, telling the agent exactly what capability this tool exposes. It is clearly separable from siblings like drive_copy, drive_upload, and m365_update.

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?

It states the mode selection rule ('by link' vs 'by inviting named people') and the mandatory confirm=true step after user approval, which is real when-to-use guidance. It does not, however, say when to prefer this over sibling tools such as m365_update for permissions, nor any explicit negative conditions.

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