> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ada.cx/llms.txt.

# create_changeset_objective

Creates the objective you confirmed and pins it to a change set. The objective measures that change set only, and it is deleted when its change set ends. See [Change sets](/docs/optimization/change-sets#review-rollout-performance).

The assistant calls this tool only after you confirm a draft from [`draft_changeset_objective`](/mcp/tools/draft-changeset-objective). It is part of the [improvement loop](/mcp/tools/start-improvement-loop).

> **Note**
>
> The tool needs a person to own the change set. Connect with an Ada dashboard login, or with an API key created in the dashboard. A service token can't create an objective. With OAuth, this tool needs the Owner or Admin role. See [Permissions](/mcp/introduction/authentication#permissions).

## Example prompts

* "Yes, create the second draft."
* "Create the objective, but name it Gives the refund date."

## Parameters

| Parameter          | Type             | Required | Description                                                                                                                              |
| ------------------ | ---------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| `name`             | string           | Yes      | The objective's name. Up to 256 characters. It must not match a name already in use, ignoring case.                                      |
| `pass_description` | string           | Yes      | What a conversation that passes shows.                                                                                                   |
| `fail_description` | string           | Yes      | What a conversation that fails shows.                                                                                                    |
| `scoring_guidance` | string           | Yes      | How the judge decides between pass and fail.                                                                                             |
| `null_description` | string           | No       | When the objective doesn't apply to a conversation.                                                                                      |
| `direction`        | string           | No       | `higher_is_better` when a pass is the good outcome, or `higher_is_worse` when a pass is the bad outcome. Defaults to `higher_is_better`. |
| `intent_ids`       | array of strings | No       | The Intents the objective grades. Empty grades all conversations.                                                                        |
| `changeset_id`     | string           | No       | A testing change set with no objective, or with a draft objective. Omit it to create a new change set for the objective.                 |

Text fields hold up to 4,096 characters.

## Response

| Field             | Description                                                                                                                                                              |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `objective_id`    | The new objective.                                                                                                                                                       |
| `changeset_id`    | The change set the objective measures. The assistant stages the fix on this change set.                                                                                  |
| `state`           | `active`, or `draft` when the authoring review didn't pass.                                                                                                              |
| `review_problems` | Returned for a draft objective. The problems that keep it from being scored. An empty list means the review couldn't run. Don't test the change set with that objective. |

A draft objective isn't scored. The assistant shows you its problems, fixes the fields with you, and calls the tool again with the same `changeset_id`. The new objective replaces the draft, unless a test case or the change set's target metrics list the draft. Don't test the change set until the objective is active.

## Errors

* **The change set already has an objective that can't be replaced.** Omit `changeset_id` to create a new change set.
* **The change set isn't a testing change set of this AI Agent.** Pass another ID, or omit it.
* **The AI Agent has the most active change sets.** Delete a change set you no longer test, or pass the ID of a testing change set with no objective.
* **The name is in use.** Choose another name.
* **The draft is in use.** A test case or the change set's target metrics list the draft objective. Remove it from there first.
* **The objective limit is reached.** An AI Agent can have a limited number of active objectives across its change sets. Delete a change set you no longer test.