Skip to main content
Glama

Share a OneDrive file with someone

share_onedrive_item

Give a named person access to a file or folder by their email address, and get back the link to pass on. Only named people — there is no "anyone with the link" option, so someone without a Microsoft account cannot be given access. The person is NOT emailed: send them the link yourself if they should know. Ask the user to confirm before sharing anything.

Input Schema

NameRequiredDescriptionDefault
roleNoDefaults to reader. OneDrive has no comment-only role, so commenter grants read
emailYesEmail address of the person to give access to
itemIdYes
mailboxYesEmail address of the connected Outlook/Microsoft 365 mailbox to act on. Call list_authorized_mailboxes to see available options.
expiresInDaysNoAccess is removed automatically after this many days, up to 365

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantial context beyond annotations: the recipient is NOT emailed, no anonymous-link mode exists, non-Microsoft accounts cannot be granted access, a link is returned, and user confirmation is required first. These are exactly the behavioral traits an agent needs and none are inferable from readOnlyHint=false / destructiveHint=false / openWorldHint=true.

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?

Front-loads the action and its result, then uses each following sentence for a distinct non-obvious constraint (named-only, no email sent, confirm first). Bold emphasis is used sparingly on the highest-risk fact; no filler.

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 no output schema, the description usefully states the return value (a link). Safety is covered by annotations and the behavioral nuances are covered in prose. The remaining gap is the undocumented itemId parameter and the absence of a pointer to list_onedrive_permissions for pre-checking access.

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 coverage is 80%, so the schema already documents role (with its commenter caveat), email, mailbox, and expiresInDays. The description adds no parameter-level detail — notably itemId is undocumented in both places — so it neither compensates for the gap nor adds meaning beyond the schema.

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?

States a specific verb (give access / share), resource (OneDrive file or folder), actor (a named person by email), and outcome (returns a link to pass on). The OneDrive scoping distinguishes it from share_gdrive_item, and the 'give access' framing distinguishes it from unshare_onedrive_item.

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?

Clearly frames the context (named-person sharing) and rules out the alternative model ('there is no "anyone with the link" option'), plus a workflow prerequisite ('Ask the user to confirm before sharing anything'). It does not explicitly name sibling tools like unshare_onedrive_item or list_onedrive_permissions for checking existing access, so it stops short of full routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources