Skip to main content
Glama

teams_leave_chat

Destructive

Leave a Microsoft Teams group chat by conversation ID, with an optional account alias for multi-account setups.

Instructions

Leave a group chat.

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": {
      "conversation_id": "<conversation_id>"
    },
    "name": "teams_leave_chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNoAccount alias (see teams_accounts). Defaults to the default account.
conversation_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the description need not repeat that it mutates state. However, it adds nothing beyond them: no mention of losing message history, removal from future messages, whether the chat disappears from the user's list, or whether the action can be undone. For a destructive operation with no output schema, that silence is a real gap.

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

Conciseness3/5

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

The single sentence is front-loaded and contains no wasted words, but its brevity reflects under-specification rather than economy. There is no structure beyond the bare statement of action.

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

Completeness2/5

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

For a destructive, open-world mutation with an undocumented required identifier and no output schema, the description is far too thin. An agent needs to know the consequences of leaving and how to source the conversation_id, neither of which is covered.

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 only 50%: 'account' is documented in the schema, but 'conversation_id' has no description anywhere. The description does not explain where to obtain a conversation_id (e.g. from teams_get_chat or teams_find_chat_with) or what format it takes, so it fails to compensate for the coverage gap.

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 states a specific verb and resource, 'Leave' + 'group chat', which is enough to distinguish it from teammates like teams_leave_channel and teams_leave_community whose resource differs. It is clear but stops short of any explicit sibling differentiation or scope qualification.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool, no prerequisites, and no alternatives named. The agent gets no information about whether the user must be a member, whether rejoining is possible, or what other tools (e.g. teams_get_chat, teams_join_chat_by_link) are relevant.

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