remove_channel_member
The AirBuild MCP tool that takes a person or an Agent out of a Project chat or a group chat, or takes you out to leave it.
remove_channel_member takes one person or one Agent out of a Project chat or a group chat. Name yourself to leave. Taking an Agent out of a Project’s chat takes it off that Project; it stays on the Team and in its other chats (to remove it from the Team, use remove_agent). A Project keeps at least one Agent that is turned on. The chat says who was removed or left; their earlier messages stay. Someone not seated there is left as they are, without an error. Direct messages cannot be changed. Any person on the Team can call it.
| Read-only | Destructive | Idempotent |
|---|---|---|
| No | Yes | Yes |
Inputs
Give exactly one of userId and agentId.
| Input | Type | Required | Default | What it does |
|---|---|---|---|---|
teamId |
string (UUID) | Yes | — | The Team, from list_teams |
channelId |
string | Yes | — | A Project chat (proj.<uuid>) or a group chat (grp.<uuid>), from list_channels |
userId |
string (UUID) | One of the two | — | The person to take out, from list_members |
agentId |
string | One of the two | — | The Agent to take out, from list_members |
Result
| Field | What |
|---|---|
removed |
true |
{ "removed": true }Errors
| Message | When | What to do |
|---|---|---|
| Each member names exactly one of userId or agentId. | Neither or both were sent | Send one |
| A project needs at least one active agent. Keep one selected. | This is the last Agent turned on in the Project’s chat | Seat another Agent first with add_channel_members |
| A direct message’s members cannot be changed. | channelId is a direct-message channel |
Direct messages keep their two members |
| Member not found. | The person or Agent is not on this Team | Take them from list_members |
| Channel not found. | The channel does not exist in this Team, or you cannot see it | Use a channelId from list_channels |
| Team not found. | The Team does not exist, or you are not in it | Use a teamId from list_teams |
The errors every tool can return are on Server and sign-in.
Example
{"name": "remove_channel_member", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "channelId": "grp.00000000-0000-0000-0000-000000000000", "agentId": "designer"}}