Skip to main content
Glama

teams_leave_channel

Destructive

Leave a private or shared Teams channel by team and channel ID; standard channels require adjusting team membership instead.

Instructions

Leave a private or shared channel (work/school); standard channels follow team membership.

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": {
      "team": "<team>",
      "channel_id": "<channel_id>"
    },
    "name": "teams_leave_channel"
  }
}

Input Schema

NameRequiredDescriptionDefault
teamYesGroup id, team thread id, or exact name
accountNoAccount alias (see teams_accounts). Defaults to the default account.
channel_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and openWorldHint=true, so the safety profile is known. The description adds a useful constraint about standard channels but says nothing about whether leaving is reversible, what permissions are needed, or what happens to channel content and history.

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 that front-loads the action and appends the scope constraint, with no filler. Slight terseness leaves ambiguity that a few more words could resolve.

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 destructive mutation with no output schema, the description covers applicability but omits permission requirements, reversibility, and error conditions. Combined with an unexplained channel_id parameter, an agent has enough to attempt the call but not enough to predict its consequences.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67%, with channel_id carrying no description at all. The description adds no meaning to any parameter — it never mentions team, channel_id, or account, so the undocumented channel_id format is left entirely to inference.

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?

The description uses a specific verb and resource ('Leave a ... channel') and scopes it to 'private or shared channel (work/school)', so an agent knows exactly what operation applies. It does not explicitly contrast with siblings such as teams_delete_channel or teams_leave_chat, keeping it short of a 5.

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?

'standard channels follow team membership' implies a when-not condition: this tool cannot be used on standard channels, which is genuinely useful. However, it gives no guidance on alternatives (e.g. delete vs leave) or when leaving is the appropriate action versus removing members.

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

Deploy Server

Other Tools