Skip to main content
Glama

teams_send_file

Upload a local file to Microsoft Teams chat or channel and post it as a file card, using OneDrive links for chats or the channel Files folder for channels.

Instructions

Upload a local file (any type, any size) and post it into a chat or channel as a file card. Personal: your OneDrive, with an "anyone with the link can view" link; work chats: your OneDrive, view link for the chat members (organisation link as fallback); work channels: the channel's Files folder.

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>",
      "path": "<path>"
    },
    "name": "teams_send_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
accountNoAccount alias (see teams_accounts). Defaults to the default account.
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; the description adds genuinely new behavioral context, notably that the upload lands in OneDrive and that the sharing link grants 'anyone with the link can view' access, with a fallback to an organisation link. That permission-model disclosure is security-relevant and cannot be derived from the annotations. It stops short of covering auth requirements, overwrite behavior, or that a revocable link is created.

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?

The core action is front-loaded in the first clause, and the trailing colon-list delivers three distinct storage cases compactly. The sentence is dense but every clause carries information; only minor awkwardness comes from packing the permission model into a parenthetical.

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?

With no output schema and no annotations covering permissions, the description does well on destination and link-visibility semantics. It is still incomplete for a write tool: nothing about what is returned, whether large uploads behave differently despite the 'any size' claim, or what the message parameter contributes.

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 only 25% (just 'account'), so the description has to carry the rest. It implies the path is a local file and conversation_id is a chat or channel target, which is helpful, but the 'message' parameter is never mentioned at all, leaving an agent unsure whether it is a caption, a separate post, or required.

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?

The description gives a specific verb and resource ('Upload a local file ... and post it into a chat or channel as a file card') plus scope qualifiers ('any type, any size'). It implicitly separates itself from send_image/send_gif by framing the payload as a file card, but never names those siblings, so the boundary is left to inference.

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?

It breaks down which storage target applies for personal, work chat, and work channel conversations, which is useful selection context, but it never says when to prefer this over teams_send_image, teams_share_drive_file, or teams_send_message, nor any preconditions. Usage must be inferred from the storage-per-context breakdown.

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