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

# Treatments (Toolsets)

> Create treatments from your tools, turn off single MCP tools, keep tool versions current, and change one thing at a time.

A treatment (toolset) is the set of [tools](https://docs.oqoqo.ai/experiments/tools.md) an agent gets in a run: any mix of skills, MCP servers, CLIs, and SDKs, each at a version you choose. Each treatment is one condition in an experiment, and comparing treatments on the same tasks shows which tools help agents do the work.

Files and machines attach to the [task](https://docs.oqoqo.ai/experiments/tasks.md), and you choose [agents](https://docs.oqoqo.ai/setup/agents.md) at launch, so treatments on the same task differ only in their tools. For a different environment or different starting folders, change the task or use another one.

## Treatments every project has

Every project has these read-only treatments, which you can launch but not edit.

| Treatment | What it gives the agent |
| - | - |
| **Raw Agent** | No added tools: the agent runs as its vendor ships it |
| **All official skills** | Every skill version you marked as official |
| **All official MCPs** | Every official MCP server version |
| **All official CLIs** | Every official CLI version |
| **All official SDKs** | Every official SDK version |

Each **All official** treatment appears when the project has at least one [official version](https://docs.oqoqo.ai/experiments/tools.md#official-versions) of that type, and it follows your official versions as they change.

## Create a treatment

> [tab] Dashboard
>
> 1. Open **Manage → Treatments (Toolsets)** and select **New treatment**.
> 2. Name the treatment.
> 3. On the **Skills**, **MCP servers**, **CLIs**, and **SDKs** tabs, include tools and choose a version of each.
> 4. Select **Create treatment**.
>
> You can also select **Create treatment** in the message that appears after you [create a tool](https://docs.oqoqo.ai/experiments/tools.md). If a treatment with the same tools already exists, Oqoqo uses it instead of making a copy.

> [tab] CLI
>
> ```bash theme={null}
> oqoqo resources apply --operation-file treatment.json
> ```
>
> `oqoqo schema resources apply` lists the fields, and [`oqoqo resources apply`](https://docs.oqoqo.ai/cli/catalog#oqoqo-resources-apply) has an example. To add or remove one tool, use [`oqoqo resources lifecycle`](https://docs.oqoqo.ai/cli/catalog#oqoqo-resources-lifecycle).

> [tab] Plugin (MCP)
>
> Ask your AI assistant to make the treatment. It calls **Create or update a resource** ([`author_resource`](https://docs.oqoqo.ai/mcp-server/tools#author_resource)).
>
> ```text theme={null}
> Create a treatment named "Stripe MCP" that gives the agent our latest Stripe MCP server and nothing else.
> ```

A treatment's page lists its tools and versions by type, and marks a tool with **Newer version available** when there is one. Its **Runs** tab lists every run that launched with the treatment, in every experiment, and its **Experiments** and **Frictions** tabs list those runs' experiments and frictions.

![Treatment page with Skills, MCP servers, CLIs, and SDKs in a list beside the attached tools and their versions.](https://mintcdn.com/oqoqo/Kw422mg5Ty_cVVIQ/images/screenshots/treatment-detail-light.png?fit=max\&auto=format\&n=Kw422mg5Ty_cVVIQ\&q=85\&s=33752c12350e7b924bba6c6bb08d6efb)

## Turn off MCP tools

A treatment gives the agent every tool of each MCP server it includes. To test a server without some of them, turn those tools off in the treatment. Tools the server adds later stay on.

> [tab] Dashboard
>
> 1. Open or start a treatment and select **MCP servers**.
> 2. In the server's row, select the **Tools** count (for example **All 3 on**) to list its tools. A treatment that turns tools off opens with them listed.
> 3. Turn off the tools the agent must not use. **All** switches every listed tool, and servers with more than 10 tools add a search box and a **Show only off** filter.
> 4. Save the treatment.
>
> The list comes from Oqoqo's last check of that server version. With no list, for example for a local server, type a tool's exact name and select **Turn off**.
>
> ![A treatment's MCP servers section. The DeepWiki row says 2 of 3 on, and its three tools are listed under it with ask\_wiki\_question switched off.](https://mintcdn.com/oqoqo/Kw422mg5Ty_cVVIQ/images/screenshots/treatment-mcp-tools-light.png?fit=max\&auto=format\&n=Kw422mg5Ty_cVVIQ\&q=85\&s=3eeca2fe1a6ad1e9d6416a1bc241b03a)

> [tab] CLI
>
> Get the exact tool names first:
>
> ```bash theme={null}
> oqoqo mcp tools list mcp_2e8b6f13
> ```
>
> Then set `disabledMcpTools` in the treatment operation. Save this as `treatment.json`:
>
> ```json theme={null}
> {
>   "action": "create",
>   "kind": "treatment",
>   "mutationAttemptId": "docs-mcp-without-ask-01",
>   "name": "Docs MCP without ask_question",
>   "mcpServerVersionIds": ["mcpver_a7d3c019"],
>   "disabledMcpTools": [
>     { "mcpServerVersionId": "mcpver_a7d3c019", "tools": ["ask_question"] }
>   ]
> }
> ```
>
> ```bash theme={null}
> oqoqo resources apply --operation-file ./treatment.json --output json
> ```

> [tab] Plugin (MCP)
>
> Ask your AI assistant to change the treatment. It calls **List an MCP server's tools** ([`list_mcp_server_tools`](https://docs.oqoqo.ai/mcp-server/tools#list_mcp_server_tools)) for the names, then **Create or update a resource** ([`author_resource`](https://docs.oqoqo.ai/mcp-server/tools#author_resource)).
>
> ```text theme={null}
> In the "Docs MCP" treatment, turn off the ask_question tool of our Docs MCP server.
> ```

To copy a treatment with one more tool turned off, use [**Test without this tool**](https://docs.oqoqo.ai/experiments/tools.md#test-without-a-tool) on the server's **Tools** tab. To find the treatments that turn a tool off, set the **MCP tool turned off** filter on **Treatments**, or select **Off in N treatments** on the tool.

### How turned-off tools behave

* You can't turn off every tool of a server. To give the agent none of its tools, remove the server from the treatment.
* When you move the treatment to a newer version of the server, the same tools stay off.
* Two treatments with the same tools, versions, and turned-off tools are the same treatment.
* Most agents don't see a tool that is off. Cursor still lists it and refuses each call, so its runs show those calls as failed tool calls.
* Some servers name their tools in their own instructions. The agent can read the name of a tool that is off there, but it can't call the tool.

> [accordion] Rules for tool names and the disabledMcpTools field
>
> * Only a tool whose name has 1 to 128 letters, digits, underscores, hyphens, or dots can be turned off. In the tool lists of the CLI and the plugin, `canTurnOff` tells you.
> * A new name must be in the server's last tool list, so refresh the list if the server changed. Without a list, for example for a local server, Oqoqo saves the names you give without checking them.
> * `disabledMcpTools` replaces all of the treatment's choices: a server you leave out gets all its tools back, and `[]` turns every tool back on. Leaving out the field keeps the choices.

## Keep treatments up to date

A treatment keeps the tool versions you chose. When you save a new version of a tool, Oqoqo asks **Update linked treatments?** Select **Update treatments** to move them to the new version, or keep their current versions. Runs that already launched keep the tools the treatment had at launch.

## Change one thing at a time

Make each treatment differ from the baseline in one way only. When two tools change at once, you can't tell which one made the difference.

Compare each treatment with the **Baseline** you [choose at launch](https://docs.oqoqo.ai/experiments/launch.md#choose-treatments-and-a-baseline), usually **Raw Agent**. The difference in pass rate is the treatment's [lift](https://docs.oqoqo.ai/experiments/overview.md#baseline-and-lift), and [Measure a tool's impact](https://docs.oqoqo.ai/guides/measure-tool-lift.md) walks through the whole loop for one tool.

| Compare | With | To learn |
| - | - | - |
| **Raw Agent** | A treatment that adds your skill | How much the skill helps |
| A treatment with skill version 1 | The same treatment with version 2 | Whether the new version helps more |
| A treatment with your MCP server | A treatment with your CLI | Which interface agents use better |

## From the CLI and the plugin

| Task | CLI | Plugin (MCP) |
| - | - | - |
| List treatments | [`oqoqo catalog list --kind treatment`](https://docs.oqoqo.ai/cli/catalog#oqoqo-catalog-list) | [`inspect_catalog`](https://docs.oqoqo.ai/mcp-server/tools#inspect_catalog) |
| Create or change a treatment | [`oqoqo resources apply`](https://docs.oqoqo.ai/cli/catalog#oqoqo-resources-apply) | [`author_resource`](https://docs.oqoqo.ai/mcp-server/tools#author_resource) |
| Add or remove one tool | [`oqoqo resources lifecycle`](https://docs.oqoqo.ai/cli/catalog#oqoqo-resources-lifecycle) | [`manage_resource`](https://docs.oqoqo.ai/mcp-server/tools#manage_resource) |
| See what depends on a treatment | [`oqoqo resources impact`](https://docs.oqoqo.ai/cli/catalog#oqoqo-resources-impact) | [`inspect_resource_impact`](https://docs.oqoqo.ai/mcp-server/tools#inspect_resource_impact) |
| List the experiments, runs, and frictions that used a treatment | `--treatment-id` on [`oqoqo experiments list`](https://docs.oqoqo.ai/cli/experiments#oqoqo-experiments-list), [`runs list`](https://docs.oqoqo.ai/cli/runs#oqoqo-runs-list), [`frictions list`](https://docs.oqoqo.ai/cli/frictions#oqoqo-frictions-list) | `treatment_id` on [`list_experiments`](https://docs.oqoqo.ai/mcp-server/tools#list_experiments), [`list_runs`](https://docs.oqoqo.ai/mcp-server/tools#list_runs), [`list_frictions`](https://docs.oqoqo.ai/mcp-server/tools#list_frictions) |

## Next steps

> [card] [Launch an experiment](https://docs.oqoqo.ai/experiments/launch.md)
>
> Compare your treatments on the same tasks.

> [card] [Measure a tool's impact](https://docs.oqoqo.ai/guides/measure-tool-lift.md)
>
> Follow the whole loop for one tool.

> [card] [Tools](https://docs.oqoqo.ai/experiments/tools.md)
>
> Add the skills, MCP servers, CLIs, and SDKs to put in treatments.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.