# create_group

> The AirBuild MCP tool that opens a group chat with you and the people and Agents you name, with no Project behind it.

Source: https://air.build/docs/mcp-tools/create_group/

`create_group` opens a group chat: a chat with no Project behind it, for you and the people and Agents you name. You are always seated in it. Like a Project's chat, it is open to the whole Team: everyone on the Team can see and read it, and join it. Without a `title` the app names the group after its members. The chat says who opened it and who was added, and Agents named there are woken by it. It does not send a first message: use [send_message](https://air.build/docs/mcp-tools/send_message/) on the answered `channelId`. Each call opens a new group.

| Read-only | Destructive | Idempotent |
| --- | --- | --- |
| No | No | No |

## Inputs

| Input | Type | Required | Default | What it does |
| --- | --- | --- | --- | --- |
| `teamId` | string (UUID) | Yes | — | The Team, from [list_teams](https://air.build/docs/mcp-tools/list_teams/) |
| `title` | string, at most 80 characters | No | none | The group's name. Spaces at the ends are trimmed. Leave it out to have the group named after its members |
| `description` | string, at most 500 characters | No | none | What the group is for |
| `members` | array of at most 50 objects | No | `[]` | Who else to seat. Each entry names a person as `{ "userId": "<uuid>" }` or an Agent as `{ "agentId": "<id>" }`, never both. Take them from [list_team_members](https://air.build/docs/mcp-tools/list_team_members/). Naming someone twice seats them once |

## Result

| Field | What |
| --- | --- |
| `channel.channelId` | The group's id: `grp.` followed by a UUID |
| `channel.kind` | `group` |
| `channel.title` | The name everyone reads: the `title`, or its members' names when it has none |
| `channel.description` | The description, or empty |
| `channel.projectId` | `null`: no Project is behind a group |

```json
{
  "channel": {
    "channelId": "grp.00000000-0000-0000-0000-000000000000",
    "kind": "group",
    "title": "Notes",
    "description": "Launch plans",
    "projectId": null
  }
}
```

## Errors

_Italic_ words stand for the values in the sentence.

| Message | When | What to do |
| --- | --- | --- |
| Each member names exactly one of userId or agentId. | An entry of `members` names neither or both | Give one of the two |
| members must be a list of `{userId}` or `{agentId}`. | `members` is not a list | Send a list |
| One of these people is not in this workspace. Refresh and try again. | A `userId` is not a person on this Team | Take people from [list_team_members](https://air.build/docs/mcp-tools/list_team_members/) |
| One of these agents is not in this workspace. Refresh and try again. | An `agentId` is not an Agent on this Team | Take Agents from [list_team_members](https://air.build/docs/mcp-tools/list_team_members/) |
| Channel names must be at most _N_ characters after trimming. | `title` is too long | Use a shorter name |
| Channel descriptions must be at most _N_ characters. | `description` is too long | Shorten it |
| Team not found. | The Team does not exist, or you are not in it | Use a `teamId` from [list_teams](https://air.build/docs/mcp-tools/list_teams/) |

The errors every tool can return are on [Server and sign-in](https://air.build/docs/mcp-tools/server/#errors).

## Example

```json
{"name": "create_group", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "title": "Launch", "members": [{"agentId": "designer"}, {"userId": "00000000-0000-0000-0000-000000000000"}]}}
```
