Skip to main content
Glama

Remove team member

team_remove_member
DestructiveIdempotent

Remove a member (account id or alias) from a team, or cancel a pending invite (its id from team_show, its email address, or the invited account's id or alias). Only the team owner or the member themselves may remove a membership; only the owner or the member who sent it may cancel an invite. The last member removing themselves deletes the team, refused with TEAM_OWNS_WORKSPACES while it owns workspaces and TEAM_HAS_PLAN while it is on a paid plan.

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>",
      "teamId": "<teamId>"
    },
    "name": "team_remove_member"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesWhom to remove: a member's account id or alias, or a pending invite's id or email address.
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.
teamIdYesThe team: its id or slug.

Output Schema

NameRequiredDescriptionDefault
removedYes

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. Changed5 schema fields changed
    • addedInput schema / properties / id
      Added value: +{
      +  "description": "Whom to remove: a member's account id or alias, or a pending invite's id or email address.",
      +  "maxLength": 300,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • removedInput schema / properties / member
      Removed value: -{
      -  "description": "Whom to remove: a member's account id or alias, or a pending invite's id or email address.",
      -  "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"
      -}
    • addedInput schema / properties / teamId
      Added value: +{
      +  "description": "The team: its id or slug.",
      +  "maxLength": 300,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "team",
      -  "member"
      -]New value: +[
      +  "id",
      +  "teamId"
      +]
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: authorization constraints, the destructive side effect that the last member removing themselves deletes the team, and specific refusal codes TEAM_OWNS_WORKSPACES and TEAM_HAS_PLAN. This is valuable behavioral disclosure for 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?

The description is front-loaded and uses three dense sentences with no wasted wording. Authorization rules, cancellation rules, and last-member consequences are ordered logically.

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 team-membership tool with an output schema and annotations, the description covers the essential context: who may act, accepted identifiers, and the special deletion/refusal behavior for the last member. No critical information is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds meaning by expanding the accepted forms for `id` to include an invite id from team_show, an email address, or the invited account's id or alias, and clarifies `teamId` can be an id or slug.

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: remove a team member or cancel a pending invite. It clearly distinguishes membership removal from invite cancellation and names the accepted identifier types.

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?

Gives explicit authorization rules: only the team owner or the member themselves may remove a membership, and only the owner or invite sender may cancel an invite. It also explains last-member self-removal behavior with named refusal errors, though it does not explicitly route to sibling tools.

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.