Skip to main content
Glama
BiteFoundry Teams MCP Server

BiteFoundry Teams MCP Server

delete_message

DestructiveIdempotent

Soft-delete a message you sent in Teams chats or channels, requiring confirm=true; use edit instead to fix typos.

Instructions

Soft-delete a message previously sent by the signed-in user (use edit_message instead to fix a typo). Destructive action requiring literal confirm=true; rejected during validation otherwise. Enforces Graph delegated permissions (Chat.ReadWrite or ChannelMessage.ReadWrite) and Teams delete policy. Updates Graph and local cache; returns { ok, conv_key, msg_id }.

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>",
      "msg_id": "<msg_id>",
      "confirm": "<confirm>"
    },
    "name": "delete_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
msg_idYesID of the message sent by the current user to soft-delete.
targetYesConversation conv_key (chat:... or chan:team:channel), "Team/Channel", or unique conversation title substring.
confirmYesSafety guard: must be literal JSON boolean true or the call fails before contacting Microsoft Graph.
thread_root_idNoOptional channel thread root post ID required when deleting a reply inside a channel thread.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.1
    • changedInput schema / properties / confirm / description
      Previous value: -"Must be literal boolean true."New value: +"Safety guard: must be literal JSON boolean true or the call fails before contacting Microsoft Graph."
    • addedInput schema / properties / msg_id / description
      Added value: +"ID of the message sent by the current user to soft-delete."
    • addedInput schema / properties / target / description
      Added value: +"Conversation conv_key (chat:... or chan:team:channel), \"Team/Channel\", or unique conversation title substring."
    • addedInput schema / properties / thread_root_id / description
      Added value: +"Optional channel thread root post ID required when deleting a reply inside a channel thread."
  2. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, and the description adds substantial context beyond them: the deletion is a soft delete, a literal confirm=true is enforced at validation before any Graph call, specific delegated permissions (Chat.ReadWrite or ChannelMessage.ReadWrite) and Teams delete policy apply, and both Graph and local cache are updated. It even discloses the return shape { ok, conv_key, msg_id } despite there being no output schema.

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 tightly packed sentences front-loaded with the core action, then the alternative, then the guardrails. No filler, and the parenthetical about edit_message sits exactly where a reader needs it.

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?

Covers everything an agent needs for a destructive mutation: what gets deleted, the required confirmation, permission and policy prerequisites, side effects on cache, and the return shape even without an output schema. Nothing material is left to inference.

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 all four parameters are already documented, and the description only reinforces the confirm guard rather than adding new meaning to target or thread_root_id. It does explain the failure mode of confirm at validation time, but that is largely duplicative of the schema's own wording, so the baseline of 3 is appropriate.

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?

States a specific verb and resource ('Soft-delete a message') plus the important scope constraint 'previously sent by the signed-in user', which rules out deleting others' messages. It also explicitly contrasts itself with the sibling edit_message, so an agent can distinguish the two without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use-elsewhere rule: 'use edit_message instead to fix a typo', naming both the alternative and the condition that selects it. The soft-delete framing further clarifies when this destructive path is appropriate versus a simple edit.

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