> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omni.co/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP modeling tools

> List the branches of a model from an MCP client, and make model changes on a branch with the Omni Agent.

Tools used to find and create [branches](https://docs.omni.co/content/develop/branch-mode.md), refresh a model's schema, and sync dbt metadata. Pass a branch ID to [`askOmni`](https://docs.omni.co/ai/mcp/tools/omni-agent#ask-omni) or [`runQuery`](https://docs.omni.co/ai/mcp/tools/querying#run-query) to work on that branch.

To change the model, use [`askOmni`](https://docs.omni.co/ai/mcp/tools/omni-agent#ask-omni). The Omni Agent saves its model edits to the branch you pass, or to a new branch.

## Read tools

> [accordion] listBranches
>
> Lists branches of a given model
>
> > [!NOTE]
> >
> > The [Agentic capabilities setting](https://docs.omni.co/ai/settings/mcp.md#agentic) must be enabled to use this tool.
>
> Lists existing branches of a given base model. Use this tool alongside [`askOmni`](https://docs.omni.co/ai/mcp/tools/omni-agent#ask-omni)'s or [`runQuery`](https://docs.omni.co/ai/mcp/tools/querying#run-query)'s `branchId` parameter to target an existing branch instead of creating a new one.

> [accordion] listOrgBranches
>
> Lists the org-wide branches you can see
>
> > [!NOTE]
> >
> > The [Content access setting](https://docs.omni.co/ai/settings/mcp.md#content-access) must be enabled to use this tool. This tool isn't available to embed users.
>
> Lists the org-wide branches you can see, using the [List branches API](https://docs.omni.co/api/branches/list-branches.md). An org-wide branch ID is different from the per-model branch ID that [`listBranches`](#list-branches) returns.

> [accordion] getOrgBranch
>
> Reads an org-wide branch and its parts
>
> > [!NOTE]
> >
> > The [Content access setting](https://docs.omni.co/ai/settings/mcp.md#content-access) must be enabled to use this tool. This tool isn't available to embed users.
>
> Reads an org-wide branch and its parts, using the [Get a branch API](https://docs.omni.co/api/branches/get-a-branch.md). Each part shows whether you can merge it.

> [accordion] checkModelJob
>
> Checks the status of a schema refresh or dbt sync job
>
> Checks the status of a schema refresh or dbt sync job, using the [Get job status API](https://docs.omni.co/api/jobs/get-job-status.md).

## Write tools

> [accordion] createOrgBranch
>
> Creates an org-wide branch
>
> > [!NOTE]
> >
> > The [Content access setting](https://docs.omni.co/ai/settings/mcp.md#content-access) must be enabled to use this tool. This tool isn't available to embed users.
>
> Creates an org-wide branch, using the [Create a branch API](https://docs.omni.co/api/branches/create-a-branch.md). Only you can see the branch until it has changes, and a branch that has no changes for a week is removed.
>
> The tool returns an org-wide branch ID, which is different from the per-model branch ID that [`listBranches`](#list-branches) returns.

> [accordion] refreshModelSchema
>
> Starts a schema refresh for a model
>
> > [!NOTE]
> >
> > Your MCP client must support confirmation forms to use this tool.
>
> Starts a schema refresh for a model, using the [Refresh schema API](https://docs.omni.co/api/models/refresh-schema.md). Use [`checkModelJob`](#check-model-job) to follow the job. The tool asks you to confirm before it starts.

> [accordion] reparseModel
>
> Re-parses a model's SQL
>
> > [!NOTE]
> >
> > Your MCP client must support confirmation forms to use this tool.
>
> Re-parses a model's SQL, using the [Re-parse model SQL API](https://docs.omni.co/api/models/re-parse-model-sql.md). The tool asks you to confirm before it starts.

> [accordion] syncModelDbt
>
> Starts a dbt metadata sync for a branch
>
> > [!NOTE]
> >
> > Your MCP client must support confirmation forms to use this tool.
>
> Starts a dbt metadata sync for a branch, using the [Trigger a dbt metadata sync for a branch API](https://docs.omni.co/api/dbt/trigger-a-dbt-metadata-sync-for-a-branch.md). Use [`checkModelJob`](#check-model-job) to follow the job. The tool asks you to confirm before it starts.

> [accordion] setOrgBranchOpenToViewers
>
> Opens or closes an org-wide branch to viewers
>
> > [!NOTE]
> >
> > The [Content access setting](https://docs.omni.co/ai/settings/mcp.md#content-access) must be enabled to use this tool. Your MCP client must also support confirmation forms. This tool isn't available to embed users.
>
> Opens an org-wide branch to the Viewers and Restricted Queriers of its models, or closes it, using the [Open or close a branch to viewers API](https://docs.omni.co/api/branches/open-or-close-a-branch-to-viewers.md). While the branch is open, these users see it in place of production. The tool asks you to confirm before it saves.

> [accordion] moveOrgBranchParts
>
> Moves model changes and drafts out of an org-wide branch
>
> > [!NOTE]
> >
> > The [Content access setting](https://docs.omni.co/ai/settings/mcp.md#content-access) must be enabled to use this tool. Your MCP client must also support confirmation forms. This tool isn't available to embed users.
>
> Moves model changes and drafts from one org-wide branch to another branch or to a new branch, using the [Move branch parts API](https://docs.omni.co/api/branches/move-branch-parts.md). Drafts can also move to production, where they stay unpublished. The tool asks you to confirm before it moves them.

## Related

* [MCP server tools](https://docs.omni.co/ai/mcp/tools) - See every tool group and the settings each requires
* [Omni MCP settings](https://docs.omni.co/ai/settings/mcp.md) - Turn groups of tools on or off for your organization
