# Delete eval

`veryfront__delete_eval`

Requires project.evals.write; API keys also need delete scope.

## Access

No external-service connection is required. Use a Veryfront credential with access to the requested resources.

**Call type:** Can change resources.

## Arguments

| Field                | Type             | Required | Description and constraints                                                |
| -------------------- | ---------------- | -------- | -------------------------------------------------------------------------- |
| `project_reference`  | `string`         | No       | Project identifier or slug that scopes the tool call. Minimum length: `1`. |
| `eval_id`            | `string`         | Yes      | Provide the eval id. Minimum length: `1`.                                  |
| `source_target_kind` | `string`         | No       | Source to use: project or `preview_branch`. Defaults to project.           |
| `target_branch_id`   | `string or null` | No       | Preview branch to use when the target kind is `preview_branch`.            |

## Example request

Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See [MCP client setup](/docs/cloud/getting-started/connect-mcp.md).

```json title="request.json"
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__delete_eval",
    "arguments": {
      "eval_id": "example"
    }
  }
}
```

## Result

The published output shape is summarized below. Inspect both the MCP response content and `isError` when handling a call.

| Field | Type      | Required | Description and constraints                 |
| ----- | --------- | -------- | ------------------------------------------- |
| `ok`  | `boolean` | Yes      | The ok returned by the tool. Value: `true`. |

## Full schemas

```json title="input-schema.json"
{
  "type": "object",
  "properties": {
    "project_reference": {
      "type": "string",
      "minLength": 1,
      "description": "Project identifier or slug that scopes the tool call."
    },
    "eval_id": {
      "type": "string",
      "minLength": 1,
      "description": "Provide the eval id."
    },
    "source_target_kind": {
      "type": "string",
      "description": "Source to use: project or preview_branch. Defaults to project."
    },
    "target_branch_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "description": "Provide the target branch id."
        },
        {
          "type": "null",
          "description": "Provide the target branch id."
        }
      ],
      "description": "Preview branch to use when the target kind is preview_branch."
    }
  },
  "required": [
    "eval_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "Arguments for the delete_eval tool."
}
```

```json title="output-schema.json"
{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "const": true,
      "description": "The ok returned by the tool."
    }
  },
  "required": [
    "ok"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "Structured result returned by the delete_eval tool."
}
```
