Skip to main content
Glama

Leave team

team_leave
DestructiveIdempotent

Leave a team. An owner leaving transfers ownership to the earliest remaining member; the last member leaving deletes the team, which is refused TEAM_HAS_PLAN while the team is on a paid plan (a cancelled plan counts until its period ends); the team's owner or an admin cancels it in Billing, in the dashboard.

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": {
      "id": "<id>"
    },
    "name": "team_leave"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe team: its id or slug.
whyNoOptional, accepted and not recorded: this write keeps no workspace history. If you send one, one sentence on the goal this change serves. At most 300 characters.

Output Schema

NameRequiredDescriptionDefault
leftYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / why / description
      Previous value: -"Optional, accepted and not recorded: this write keeps no workspace history. If you send one, one sentence on what the person is trying to accomplish. At most 300 characters."New value: +"Optional, accepted and not recorded: this write keeps no workspace history. If you send one, one sentence on the goal this change serves. At most 300 characters."
  2. Changed3 schema fields changed
    • addedInput schema / properties / id
      Added value: +{
      +  "description": "The team: its id or slug.",
      +  "maxLength": 300,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • removedInput schema / properties / team
      Removed value: -{
      -  "description": "The team: its id or slug.",
      -  "maxLength": 300,
      -  "minLength": 1,
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "team"
      -]New value: +[
      +  "id"
      +]
  3. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already flag destructive/non-readonly/idempotent, but the description adds substantial behavior beyond them: ownership transfers to the earliest remaining member, the last member's leave deletes the team, that deletion is blocked with TEAM_HAS_PLAN on a paid plan, and a cancelled plan still counts until its period ends. These are precisely the side effects an agent needs before invoking a destructive write.

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?

Front-loaded with the action, then packed with consequences in a single semicolon-chained sentence; every clause carries information. The final clause ("the team's owner or an admin cancels it in Billing, in the dashboard") is grammatically tangled and slightly slows parsing.

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 destructive membership mutation with only two parameters and an output schema, the description covers the important unknowns: ownership handoff, cascading deletion, the blocking error code, and the remediation path. Nothing an agent needs to call it safely is absent.

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%: `id` is documented as id-or-slug and `why` is documented as optional and unrecorded. The description adds no further meaning about either parameter, so the baseline 3 applies.

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?

"Leave a team" is a specific verb plus resource, and the following clauses spell out exactly what leaving does (ownership transfer, deletion of the last-member team). It does not explicitly contrast with the sibling team_remove_member, so an agent must infer that this tool removes the caller rather than another user.

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?

It gives real routing guidance for the failure case: when the last member tries to leave a team on a paid plan, the call is refused TEAM_HAS_PLAN and the owner/admin must cancel in Billing in the dashboard. What's missing is any statement of when to prefer this over team_remove_member or team_delete.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.