# Delete agent

Tool: `veryfront__delete_agent`

Delete agent. Requires project.agents.write; API keys also need delete scope.

## Arguments

| Name                 | Type                  | Required | Description                                                                                                                                                                     |
| -------------------- | --------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference`  | string                |          | Project identifier or slug associated with the record.                                                                                                                          |
| `agent_id`           | string · min length 1 | Yes      | The agent id associated with this record.                                                                                                                                       |
| `confirm`            | boolean               |          | Send true to confirm the deletion. A call that sends false is refused and deletes nothing.                                                                                      |
| `source_target_kind` | string                |          | Write authored agent source in project or preview\_branch. Omit for project; main\_branch is a compatibility alias for project. Environment and release writes are unsupported. |
| `target_branch_id`   | string · uuid \| null |          | Required for preview\_branch. Omit or use null for project and main\_branch. Use a branch ID returned by project branch discovery.                                              |

## 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__delete_agent",
    "arguments": {
      "agent_id": "string"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"ok\":true}"
      }
    ],
    "structuredContent": {
      "ok": true
    }
  }
}
```
