> For the complete documentation index, see [llms.txt](https://help.swarmia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.swarmia.com/settings/organization/managing-teams/manage-teams-with-mcp.md).

# Manage teams with MCP

Use your AI agent to create and update teams in Swarmia.

The Swarmia MCP server lets you use an AI agent to manage teams, hierarchies, and memberships. You can compare your Swarmia teams with a source of team data, set up teams for the first time, or make changes after a reorganization.

## Before you start

* [Connect the Swarmia MCP server](https://help.swarmia.com/settings/integrations/mcp-server.md) to an MCP-compatible AI client using OAuth, and authorize both read and write access. API tokens provide read-only MCP access and can't apply changes.
* You need the [organization admin or editor role](https://help.swarmia.com/settings/organization/managing-users-and-roles.md) to update teams via MCP.
* Contact us through the in-app chat or at <hello@swarmia.com> to enable team management for your organization.

If your organization manages teams through the Teams API, make changes through the API instead.

## Update your teams

1. Give your agent the team structure you want to use. You can paste it into the conversation or connect your agent to a source such as your HR system, issue tracker, or Notion page, if your client supports it.
2. Ask your agent to compare the source with your current Swarmia teams and prepare the changes. It can create, rename, or delete teams, change parent teams, and add or remove members. The agent is instructed to show you a preview and ask for your confirmation before applying changes.
3. Review the proposed changes, including memberships and any deletions. Ask your agent to revise anything that isn't right.
4. Once you're satisfied, confirm the changes with your agent. Team updates are applied immediately when the agent runs the action; there's no separate confirmation in Swarmia.

For example, you can ask:

* “Compare our Swarmia teams with this org chart and propose changes to match it.”
* “Move Maria from the Platform team to the Payments team. Show me the changes before applying them.”
* “Add the Mobile team under Product Engineering. Show me the changes before applying them.”

Check the resulting teams and memberships in [team settings](https://app.swarmia.com/settings/teams).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.swarmia.com/settings/organization/managing-teams/manage-teams-with-mcp.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
