Skip to main content
Glama

teams_get_shared_files

Read-only

Lists files, images, videos and voice messages shared in a Microsoft Teams conversation, newest first, and returns the links needed to download them.

Instructions

Files, images, video clips and voice messages shared in a conversation (newest first, Skype-era media too), with the links teams_download_file needs. 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": {
      "conversation_id": "<conversation_id>"
    },
    "name": "teams_get_shared_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
accountNoAccount alias (see teams_accounts). Defaults to the default account.
scan_messagesNoHow many recent messages to scan (default 400).
conversation_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds real context beyond that: results are ordered newest first, Skype-era media is included, output carries downloadable links, and both personal and work accounts are supported. It does not explain message-scan depth or result limits, which keeps it from a 5.

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?

A single dense sentence with no filler, and the core resource is front-loaded before the parenthetical caveats. It is slightly telegraphic, but every clause carries information an agent can act on.

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, the description usefully characterizes return content (media types, ordering, link fields). It is still thin for a four-parameter tool with two undocumented parameters, since pagination behavior and the effect of scan_messages on results and latency are unaddressed.

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

Parameters2/5

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

Schema description coverage is only 50%: account and scan_messages are documented inline, but conversation_id and limit are not. The description mentions only that files come from 'a conversation' and adds nothing about limit or scan depth, so it fails to compensate for the undocumented parameters.

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 states a concrete resource: files, images, video clips and voice messages shared in a conversation, plus an ordering hint (newest first) and a media-scope hint (Skype-era media). It is clear what the tool returns. It does not, however, distinguish itself from sibling listing tools such as teams_list_channel_files or teams_list_sent_files, so it falls short of a 5.

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 phrase 'with the links teams_download_file needs' establishes a workflow where the agent harvests links and then downloads, which implies when to use this tool. There is no explicit when-not guidance and no differentiation from the other file-listing siblings, so usage is only implied rather than stated.

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