Skip to main content
Glama

teams_download_file

Download files, images, videos or voice messages shared in Microsoft Teams to a local path by URL or conversation and message IDs; existing files are never overwritten.

Instructions

Download a file, image, video clip or voice message shared in Teams (Skype-era media too) to a local path, or a directory ending in /. Give the url (from teams_get_shared_files, a OneDrive/SharePoint link or a Teams media URL), or conversation_id + message_id (optionally file_name). Never overwrites. Personal and work accounts.

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

Input Schema

NameRequiredDescriptionDefault
urlNo
pathYes
accountNoAccount alias (see teams_accounts). Defaults to the default account.
file_nameNo
message_idNo
conversation_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations declare only readOnlyHint=false and openWorldHint=true, so the description adds real value by stating 'Never overwrites' — a key non-obvious side effect for a tool that writes to local disk. It also discloses accepted URL provenance and account scope (personal and work), though it does not say what happens on a path collision or what the response contains.

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?

Three tight sentences, front-loaded with the action and followed by the input contract and the safety guarantee. The parenthetical '(Skype-era media too)' adds scope rather than noise, though the second sentence is dense enough to require a careful read.

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?

Covers the essential inputs, safety behavior, and account scope for a six-parameter download tool. With no output schema, it should ideally state what is returned (e.g., the saved file path), which is the only notable omission.

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

Parameters4/5

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

Schema coverage is only 17% (only account is documented in the schema), so the description must compensate — and largely does: it explains path (file path or directory ending in /), the accepted url sources, the url-vs-conversation_id/message_id alternative, and file_name's optionality. Only the account alias parameter is left to 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 (download) and specific resources (file, image, video clip, voice message shared in Teams, including Skype-era media) with the destination (local path or directory). It clearly separates itself from teams_get_shared_files, which the description names as a source of the URL rather than a competitor.

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?

Explicitly tells the agent what to supply: either a url (from teams_get_shared_files, a OneDrive/SharePoint link, or a Teams media URL) or the conversation_id + message_id pair, optionally with file_name. It lacks an explicit 'when not to use' or error-condition statement, but the input paths are unambiguous.

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