# Run eval

Tool: `veryfront__run_eval`

Start a run of an eval against its agent, reading the eval from the project or a preview branch and running it on the main branch, an environment or a preview branch; returns the new eval run, which finishes in the background. Requires project.evals.run.

## Arguments

| Name                       | Type                                   | Required | Description                                                                                                                                                         |
| -------------------------- | -------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference`        | string · min length 1                  |          | Project identifier or slug that scopes the tool call.                                                                                                               |
| `eval_id`                  | string · min length 1                  | Yes      | Eval to run.                                                                                                                                                        |
| `source_target_kind`       | string                                 |          | Source the eval definition is read from: project or preview\_branch. Defaults to project. One of `project`, `preview_branch`.                                       |
| `target_branch_id`         | string · uuid \| null                  |          | Preview branch the eval definition is read from; required when source\_target\_kind is preview\_branch.                                                             |
| `runtime_target_kind`      | string                                 |          | Runtime the eval runs on: main\_branch, environment or preview\_branch. Defaults to main\_branch. One of `main_branch`, `environment`, `preview_branch`.            |
| `target_environment_id`    | string · uuid \| null                  |          | Environment the eval runs on; required when runtime\_target\_kind is environment.                                                                                   |
| `runtime_target_branch_id` | string · uuid \| null                  |          | Preview branch the eval runs on, independent of the source branch; for a preview\_branch runtime.                                                                   |
| `input`                    |                                        |          | Eval run input: any JSON value (object, array, string, number, boolean or null).                                                                                    |
| `config`                   | object                                 |          | Run configuration object. Its eval\_id is always set to the eval being run.                                                                                         |
| `idempotency_key`          | string · min length 1 · max length 128 |          | Retry key for this eval run, 1–128 characters. Overrides the HTTP Idempotency-Key header. Unkeyed root calls remain supported; supply the same key to retry safely. |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__run_eval",
    "arguments": {
      "eval_id": "string"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"kind\":\"eval-run\",\"run_id\":\"string\",\"eval_id\":\"string\",\"status\":\"pending\",\"target_kind\":\"agent\",\"target\":\"string\",\"source\":{\"file_path\":\"string\",\"export_name\":\"string\"},\"summary\":null,\"report_path\":\"string\",\"error\":null,\"metadata\":{},\"created_at\":\"string\",\"started_at\":\"string\",\"completed_at\":\"string\"}"
      }
    ],
    "structuredContent": {
      "kind": "eval-run",
      "run_id": "string",
      "eval_id": "string",
      "status": "pending",
      "target_kind": "agent",
      "target": "string",
      "source": {
        "file_path": "string",
        "export_name": "string"
      },
      "summary": null,
      "report_path": "string",
      "error": null,
      "metadata": {},
      "created_at": "string",
      "started_at": "string",
      "completed_at": "string"
    }
  }
}
```
