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.
Arguments
project_referencestring · min length 1Project identifier or slug that scopes the tool call.
namestring · min length 1requiredHuman-readable eval name; the eval id is derived from it.
descriptionstringOptional short description of what the eval checks.
targetstring · min length 1requiredIdentifier of the agent the eval runs against.
datasetobjectrequiredThe examples the eval runs: inline examples or a dataset file.
metricsarray of objectThe metrics that score each example. Defaults to none.
repetitionsinteger · default 1How often each example runs. Defaults to 1.
tagsarray of stringLabels for the eval. Defaults to none.
metadataobjectFree-form JSON object stored with the eval. Defaults to empty.
source_target_kindstringSource to use: project or preview_branch. Defaults to project.
target_branch_idstring · uuid | nullPreview branch to use when the target kind is preview_branch.
Responses
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__create_eval", "arguments": { "name": "string", "target": "string", "dataset": { "kind": "inline", "editable": false, "dynamic": false } } }}'{ "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "{\"id\":\"string\",\"name\":\"string\",\"description\":\"string\",\"target_kind\":\"agent\",\"target\":\"string\",\"source_path\":\"string\",\"export_name\":\"string\",\"dataset\":{\"kind\":\"inline\",\"path\":\"string\",\"examples\":[{\"id\":\"string\",\"input\":null,\"reference\":null,\"metadata\":{}}],\"editable\":false,\"dynamic\":false},\"metrics\":[{\"name\":\"string\",\"family\":\"answer\",\"severity\":\"gate\",\"threshold\":{\"min\":0,\"max\":0},\"config\":{},\"editable\":false,\"dynamic\":false}],\"repetitions\":1,\"tags\":[\"string\"],\"metadata\":{},\"editable_fields\":[\"name\"],\"dynamic_fields\":[\"name\"],\"capabilities\":[\"string\"],\"source\":\"string\",\"edit_mode\":\"structured\",\"source_only_reasons\":[\"string\"]}" } ], "structuredContent": { "id": "string", "name": "string", "description": "string", "target_kind": "agent", "target": "string", "source_path": "string", "export_name": "string", "dataset": { "kind": "inline", "path": "string", "examples": [ { "id": "string", "input": null, "reference": null, "metadata": {} } ], "editable": false, "dynamic": false }, "metrics": [ { "name": "string", "family": "answer", "severity": "gate", "threshold": { "min": 0, "max": 0 }, "config": {}, "editable": false, "dynamic": false } ], "repetitions": 1, "tags": [ "string" ], "metadata": {}, "editable_fields": [ "name" ], "dynamic_fields": [ "name" ], "capabilities": [ "string" ], "source": "string", "edit_mode": "structured", "source_only_reasons": [ "string" ] } }}The tool ran; its output is result.structuredContent.