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

# evaluate_custom_metric

Starts a background job that scores one [custom metric](/docs/optimization/performance/custom-metrics) on up to 500 conversations. Read the verdicts with [`get_metric_evaluation`](/mcp/tools/get-metric-evaluation) and the `job_id` it returns.

With OAuth, this tool needs the Owner or Admin role. Use it to check that a metric fails the conversations that show a problem before you rely on the metric, or to score conversations the metric hasn't scored. The job stores nothing in the metric's record, so the metric's verdicts and pass rate don't change. It is part of the [improvement loop](/mcp/tools/start-improvement-loop).

To evaluate the objective of a change set, use [`evaluate_changeset_objective`](/mcp/tools/evaluate-changeset-objective).

## Example prompts

* "Does the Gives the refund date metric fail conversations 6720f1c2a9b3e4d5f6a7b8c9 and 6720f1c2a9b3e4d5f6a7b8d0?"
* "Score my draft metric on 100 refund conversations from last week."

## Parameters

Pass `metric_id`, and exactly one of `conversation_ids` and `sample`.

| Parameter          | Type             | Required | Description                                                                                                                                                                                 |
| ------------------ | ---------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `metric_id`        | string           | Yes      | The custom metric to evaluate. It can be in any state, a draft included.                                                                                                                    |
| `conversation_ids` | array of strings | No       | The conversations to evaluate, up to 500.                                                                                                                                                   |
| `sample`           | object           | No       | Evaluates conversations picked at random from a date range. It has the same fields as the `sample` of [`evaluate_changeset_objective`](/mcp/tools/evaluate-changeset-objective#parameters). |

## Response

Returns the job at once, with the same fields as [`get_metric_evaluation`](/mcp/tools/get-metric-evaluation) and no verdicts yet. Read the verdicts with that tool. A sample also returns `matched`: the number of conversations that match. A sample that matches no conversation returns `status` `completed` and `total` `0`.

## Limits

* A job evaluates up to 500 conversations.
* If analytics storage is unavailable, the tool returns an error and starts no job.
* An AI Agent can evaluate 2,000 conversations in 24 hours, across its metrics and objectives. Every conversation of a job counts when the job starts.
* The job evaluates the metric as it is when the job starts.
* To evaluate the objective of a change set, use `evaluate_changeset_objective`.