Skip to main content
Glama
BiteFoundry Teams MCP Server

BiteFoundry Teams MCP Server

send_file

Upload a local file to OneDrive/SharePoint and post it as a Teams message attachment, or embed a supported image inline in the conversation.

Instructions

Upload a local file from the host running teams to OneDrive/SharePoint and post it as a Teams message attachment (or inline image when inline=true). Irreversible external side effect. Latency scales with file size (single upload up to 4 MiB, 3.2 MiB chunks above). Requires Files.ReadWrite and message send permissions. Returns { ok, conversation, path, inline, message }.

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

Input Schema

NameRequiredDescriptionDefault
pathYesReadable local file path on the host running teams mcp.
inlineNoWhen true, embeds a supported image directly as Teams hostedContents instead of a OneDrive/SharePoint file attachment.
targetYesConversation conv_key (chat:... or chan:team:channel), "Team/Channel", or unique conversation title substring.
captionNoOptional Markdown caption posted alongside the file or inline image.
compactNoReturn a compact receipt (default true); set false for full conversation and message objects.
thread_root_idNoOptional channel thread root post ID when attaching to an existing channel thread.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.1.1
    • addedInput schema / properties / caption / description
      Added value: +"Optional Markdown caption posted alongside the file or inline image."
    • changedInput schema / properties / compact / description
      Previous value: -"Compact output (default). Set false for full conversation and message objects."New value: +"Return a compact receipt (default true); set false for full conversation and message objects."
    • addedInput schema / properties / inline / description
      Added value: +"When true, embeds a supported image directly as Teams hostedContents instead of a OneDrive/SharePoint file attachment."
    • changedInput schema / properties / path / description
      Previous value: -"Local file path on the host running teams."New value: +"Readable local file path on the host running teams mcp."
    • changedInput schema / properties / target / description
      Previous value: -"conv_key, \"Team/Channel\", or unique conversation title."New value: +"Conversation conv_key (chat:... or chan:team:channel), \"Team/Channel\", or unique conversation title substring."
    • changedInput schema / properties / thread_root_id / description
      Previous value: -"Optional channel thread root post ID."New value: +"Optional channel thread root post ID when attaching to an existing channel thread."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations, it discloses the irreversible external side effect, file-size-dependent latency with the 4 MiB single-upload ceiling and 3.2 MiB chunking above it, required OAuth scopes, and the receipt shape. These are exactly the operational facts an agent needs before committing to a write. The 'irreversible' wording is consistent with idempotentHint=false and does not conflict with destructiveHint=false, since posting an attachment is additive rather than a destructive mutation.

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 dense sentences, front-loaded with purpose, followed by risk, cost, auth, and return shape. No filler; every clause conveys a decision-relevant fact.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter write tool with no output schema, the description covers action, side-effect severity, size constraints, permissions, and the return contract. Nothing material for correct invocation is missing.

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 in structured form, and the description largely restates the inline behavior already in the schema. It adds no guidance on target resolution forms or caption formatting beyond what the schema states, so the baseline of 3 applies.

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 opening sentence states a specific verb and resource chain: upload a local file from the host and post it as a Teams attachment, with an explicit inline-image variant. It is clearly distinguishable from send_message (text posting) and download_attachment (the opposite direction) without opening the schema.

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?

The description gives clear context for selecting the inline path (inline=true for supported images as hostedContents) and states the preconditions for use (Files.ReadWrite plus message send permissions, a readable local path). It does not explicitly exclude cases or name a sibling such as send_message for text-only posting, so it stops short of full alternative routing.

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