# update_group

> The AirBuild MCP tool that renames a group chat or changes its description.

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

`update_group` renames a group chat, changes its description, or both. Send only what changes: a field left out stays as it is. An empty `title` clears the name, and the app names the group after its members again. A new name is announced in the chat; a description change is not. It works on group chats only: a Project's chat takes its Project's name (use [rename_project](https://air.build/docs/mcp-tools/rename_project/)), and direct messages have no name to change. Its picture is set with [start_picture_upload](https://air.build/docs/mcp-tools/start_picture_upload/). Any person on the Team can call it.

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

## 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/) |
| `channelId` | string | Yes | — | The group, `grp.<uuid>`, from [list_channels](https://air.build/docs/mcp-tools/list_channels/) |
| `title` | string, at most 80 characters | No | unchanged | The new name; `""` clears it. Spaces at the ends are trimmed |
| `description` | string, at most 500 characters | No | unchanged | The new description; `""` clears it |

## Result

| Field | What |
| --- | --- |
| `channel.channelId` | The group's id |
| `channel.kind` | `group` |
| `channel.title` | The name everyone reads: the new `title`, or its members' names when it has none |
| `channel.description` | The description |
| `channel.projectId` | `null` |

```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 |
| --- | --- | --- |
| This is a project's channel: rename or delete the project instead. | `channelId` is a Project's chat | Use [rename_project](https://air.build/docs/mcp-tools/rename_project/) |
| A direct message cannot be renamed or deleted. | `channelId` is a direct-message channel | Only groups take a name |
| This group is archived. Unarchive it to rename it. | The group is archived and `title` changes | Ask the person to unarchive it in the app |
| This group is archived. Unarchive it to edit it. | The group is archived and only `description` changes | Ask the person to unarchive it in the app |
| 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 |
| Channel not found. | The channel does not exist in this Team, or you cannot see it | Use a `channelId` from [list_channels](https://air.build/docs/mcp-tools/list_channels/) |
| 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": "update_group", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "channelId": "grp.00000000-0000-0000-0000-000000000000", "title": "Launch", "description": "Launch plans"}}
```
