Skip to main content
Glama
stackia
by stackia

Send File to Channel

send_file_to_channel

Uploads a local file and sends it to a Microsoft Teams channel as an attachment. Supports any file type and can reply to an existing message thread.

Instructions

Upload a local file and send it as a message to a Teams channel. Supports any file type (PDF, DOCX, ZIP, images, etc.). The file is uploaded to the channel's SharePoint folder and sent as a reference attachment. If messageId is provided, the file is sent as a reply to that message (thread).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNoMessage format (text or markdown)
teamIdYesTeam ID
messageNoOptional message text to accompany the file
fileNameNoOptional custom filename (defaults to the original file name)
filePathYesAbsolute path to the local file to upload
tenantIdNoTarget tenant ID from list_tenants. Omit only when a default is configured or exactly one tenant is connected. Resource IDs belong to this tenant.
channelIdYesChannel ID
messageIdNoOptional message ID to reply to. When provided, the file is sent as a reply in the message thread instead of a new message.
importanceNoMessage importance

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations, it discloses a key side effect: the file is uploaded to the channel's SharePoint folder and attached as a reference. It also clarifies that providing messageId turns the action into a reply in the thread. It does not mention permission requirements or duplicate-file behavior, but the annotations already signal mutation and non-idempotency.

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?

Three sentences with no filler: the first states the action, the second covers file-type support, and the third explains the upload mechanism and reply behavior. The key purpose is front-loaded, and every sentence earns its place.

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 9-parameter file-send operation with no output schema, the description covers the core behavior, supported file types, the SharePoint attachment mechanism, and reply semantics—enough for an agent to select and invoke it. It omits caveats like file size limits or permission requirements, but those are not essential for correct invocation given the detailed schema.

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 100%, so every parameter is already documented with descriptions, types, and constraints. The natural-language description adds little beyond reiterating messageId's reply behavior, which is already present in the schema. This meets the baseline for high schema coverage.

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 opens with a specific verb and resource: 'Upload a local file and send it as a message to a Teams channel.' It immediately differentiates from send_file_to_chat and send_channel_message by naming the channel context and adds helpful scoping about the SharePoint upload and optional reply behavior.

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 description implies usage context: use it for attaching files to a channel, optionally in reply to a message. However, it never explicitly names alternatives like send_channel_message for text-only posts or send_file_to_chat for chats, so the agent must infer when this tool is preferred over siblings.

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