evaluate_custom_metric
evaluate_custom_metric
Starts a background job that scores one custom metric on up to 500 conversations. Read the verdicts with 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.
To evaluate the objective of a change set, use 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.
Response
Returns the job at once, with the same fields as 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.