---
title: "team_set"
description: "Without `teamId` it creates a team named `name` and needs a `creationRequestId`; retrying with the same ID and payload returns the original team."
---

| Tool | Kind | Purpose |
| :-- | :-- | :-- |
| `team_set` | write | Without `teamId` it creates a team named `name` and needs a `creationRequestId`; retrying with the same ID and payload returns the original team. With `teamId` it renames that team when given `name`. With `teamId`, `userIds` sets its members to exactly that list and needs `expectedUserIds` from `teams_list`; a changed team fails with `conflict`. |

Group: [Organization & Team](/docs/en-US/agents/mcp/organization-and-team).
