Skip to main content
Glama

teams_share_drive_file

Share an existing OneDrive file into a Teams chat or channel as a file card by item ID, path, or search query, with view links for members.

Instructions

Post an existing OneDrive file into a chat as a file card, found by item_id, path (e.g. "Documents/cv.pdf") or a search query. Personal: view link for anyone with it; work: view link for the chat members (organisation link as fallback, and for channels).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "conversation_id": "<conversation_id>"
    },
    "name": "teams_share_drive_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo
queryNo
accountNoAccount alias (see teams_accounts). Defaults to the default account.
item_idNo
messageNo
conversation_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false and openWorldHint=true, but the description adds substantial behavioral context: the operation shares a link, and the sharing scope differs by account type (anyone with the link for personal, chat members for work, with an organisation-link fallback and channel behaviour). This is exactly the kind of access-granting consequence an agent needs before calling a write tool. It stops short of covering error cases or what happens on re-share.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the action and locators, followed by the permission consequence. Dense and largely waste-free, though the second sentence's compressed parenthetical ('organisation link as fallback, and for channels') is slightly hard to parse.

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

Completeness3/5

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

The tool is a mutation with no output schema and thin parameter documentation; the description covers the core action and the link-sharing implications well. It leaves gaps on what the message parameter does, whether locators are mutually exclusive, and what is returned or what failure looks like when the file cannot be found.

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 only 17% (just the account param), so the description must compensate. It meaningfully explains the three alternative file locators (item_id, path with an example format, query), which is real added value. But conversation_id, message, and the mutual exclusivity/priority between locators remain undocumented.

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?

States a specific verb and result: post an existing OneDrive file into a chat as a file card, resolved by item_id, path, or query. This distinguishes it from a generic upload tool, though it never explicitly contrasts with the close sibling teams_send_file or teams_download_file, leaving the agent to infer the boundary.

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 three locator forms are enumerated with an example path, which implies how to invoke it. However there is no explicit when-to-use/when-not guidance, no statement of precedence when multiple locators are supplied, and no routing to alternatives such as teams_send_file for new content.

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

Deploy Server

Other Tools