Skip to main content
Glama

upload_file

Send a local file to a Teams chat by uploading it to the chat's OneDrive folder, sharing read access with members, and posting it as a message; use conversationId '48:notes' for yourself.

Instructions

Send a local file to a chat: uploads it to your OneDrive Teams chat files folder, gives the chat members read access and posts it as a message (like Teams does). Use conversationId '48:notes' to send to yourself.

Input Schema

NameRequiredDescriptionDefault
nameNoFile name in Teams (defaults to the local file name)
pathYesLocal file path to upload
textNoOptional message text shown with the file
conversationIdYesChat conversation ID from list_chats

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the disclosure burden and does well: it explains the destination (OneDrive Teams chat files folder), permission change (chat members get read access), and posting behavior. It omits auth requirements, size limits, overwrite behavior, and failure modes, so not fully transparent.

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

Conciseness5/5

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

The core operation is front-loaded in one sentence, followed by a compact special-case note. There is no wasted text, and the side effects are stated efficiently.

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?

For a four-parameter tool with full schema coverage and no output schema, the description covers purpose, destination, permissions, posting behavior, and a key special case. It leaves out return values, error behavior, and file-size constraints, but the definition is otherwise complete enough to call correctly.

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 100%, so the schema already documents all four parameters. The description adds meaningful semantics beyond the schema by explaining the special conversationId value '48:notes' for sending to yourself.

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?

The description names a specific verb and resource ("Send a local file to a chat") and explains the full operation: upload to OneDrive, grant read access, and post as a message. This clearly distinguishes it from siblings like download_file and send_message.

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?

It gives clear usage context: sending a local file to a chat, plus a special case for self-sending via conversationId '48:notes'. It does not explicitly compare this to send_message or state when not to use it, but the intended use is unambiguous.

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