# veryfront__create_eval

Create an eval source file in the project source or a preview branch to test an agent against a dataset and metrics; returns the eval source document. Requires project.evals.write.

Risk: mutating.

## Arguments

| Name                 | Type    | Required | Description                                                     |
| -------------------- | ------- | -------- | --------------------------------------------------------------- |
| `project_reference`  | string  |          | Project identifier or slug that scopes the tool call.           |
| `name`               | string  | Yes      | Human-readable eval name; the eval id is derived from it.       |
| `description`        | string  |          | Optional short description of what the eval checks.             |
| `target`             | string  | Yes      | Identifier of the agent the eval runs against.                  |
| `dataset`            | object  | Yes      | The examples the eval runs: inline examples or a dataset file.  |
| `metrics`            | array   |          | The metrics that score each example. Defaults to none.          |
| `repetitions`        | integer |          | How often each example runs. Defaults to 1.                     |
| `tags`               | array   |          | Labels for the eval. Defaults to none.                          |
| `metadata`           | object  |          | Free-form JSON object stored with the eval. Defaults to empty.  |
| `source_target_kind` | string  |          | Source to use: project or preview\_branch. Defaults to project. |
| `target_branch_id`   |         |          | Preview branch to use when the target kind is preview\_branch.  |

## Call it

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__create_eval",
    "arguments": {
      "name": "<name>",
      "target": "<target>",
      "dataset": "<dataset>"
    }
  }
}
```
