Skip to main content
Glama

download_file

Download a Teams conversation file to a local path by passing its SharePoint or OneDrive file reference from list_messages.

Instructions

Download a file from a conversation to a local path

Input Schema

NameRequiredDescriptionDefault
outPathYesLocal output path
fileReferenceYesfileReference (SharePoint/OneDrive URL) from list_messages files[]

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description bears the full burden and discloses almost nothing behavioral. It does not say whether an existing file at outPath is overwritten, what permissions or auth are required, what happens on failure, or what the tool returns on success.

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 compact sentence with the action front-loaded and no padding. It is short rather than bloated, though brevity here comes at the cost of the behavioral detail noted elsewhere.

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?

For a simple two-parameter, non-destructive-looking read-and-save tool, the description plus a fully documented schema is roughly sufficient to invoke it. However, with no annotations and no output schema, the omission of overwrite and return-value behavior leaves a meaningful gap.

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 100% and the schema already explains that fileReference is a SharePoint/OneDrive URL from list_messages files[]. The description adds only the mapping of the output to a 'local path', which the schema states anyway, so baseline 3 applies.

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 resource ('Download a file') plus the source ('from a conversation') and destination ('to a local path'), which inherently separates it from sibling upload_file. It stops short of naming its counterpart explicitly, but the direction of data flow is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'from a conversation' hints at scope, but there is no statement of when to use this rather than upload_file, nor any prerequisite such as needing a fileReference obtained from list_messages. An agent must infer the whole workflow from the schema hint.

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