# Create agent

Tool: `veryfront__create_agent`

Create agent. Requires project.agents.write.

## Arguments

| Name                  | Type                                                                                                             | Required | Description                                                                                                                                                                                                                                    |
| --------------------- | ---------------------------------------------------------------------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id`                  | string · min length 1 · max length 128                                                                           | Yes      | Unique identifier for the record.                                                                                                                                                                                                              |
| `name`                | string · min length 1                                                                                            | Yes      | Human-readable name for the record.                                                                                                                                                                                                            |
| `description`         | string \| null                                                                                                   |          | Human-readable description for the record.                                                                                                                                                                                                     |
| `model`               | string \| null                                                                                                   |          | AI model id or alias. Call list\_models for the ids this deployment serves; never invent a version suffix.                                                                                                                                     |
| `thinking`            | object                                                                                                           |          | The thinking associated with this record.                                                                                                                                                                                                      |
| `temperature`         | number · min 0 · max 2 \| null                                                                                   |          | The temperature associated with this record.                                                                                                                                                                                                   |
| `max_steps`           | integer \| null                                                                                                  |          | The max steps associated with this record.                                                                                                                                                                                                     |
| `allowed_models`      | array of string · min length 1                                                                                   |          | AI model ids or aliases the agent may switch between. Call list\_models for the accepted ids.                                                                                                                                                  |
| `skill_ids`           | array of string · min length 1                                                                                   |          | The skill ids associated with this record.                                                                                                                                                                                                     |
| `skill_selection`     | object                                                                                                           |          | The skill selection associated with this record.                                                                                                                                                                                               |
| `skills`              | boolean \| string · min length 1 · max length 128 \| array of string · min length 1 · max length 128 \| object   |          | The skills associated with this record.                                                                                                                                                                                                        |
| `all_tools_enabled`   | boolean                                                                                                          |          | The all tools enabled associated with this record.                                                                                                                                                                                             |
| `tool_ids`            | array of string · min length 1                                                                                   |          | Project tools, platform tools, and integration catalog tools returned by get\_integration. Use exact names from the agent tool references search.                                                                                              |
| `tools`               | boolean \| array of string · min length 1 · max length 128 \| object                                             |          | Callable host-tool selector. Use false to disable all host tools, including skill and delegation tools. An empty array or map selects no project tools but preserves legacy runtime essentials. Provider-native tools use provider\_tool\_ids. |
| `tool_loading`        | string                                                                                                           |          | The tool loading associated with this record. One of `eager`, `deferred`.                                                                                                                                                                      |
| `tool_result_context` | boolean \| object                                                                                                |          | The tool result context associated with this record.                                                                                                                                                                                           |
| `knowledge`           | boolean \| string · min length 1 · max length 4096 \| array of string · min length 1 · max length 4096 \| object |          | The knowledge associated with this record.                                                                                                                                                                                                     |
| `provider_tool_ids`   | array of string · min length 1                                                                                   |          | Provider-native model tools only. Never put tool references from tool\_ids here.                                                                                                                                                               |
| `suggestions`         | array of string · min length 1 \| object \| null                                                                 |          | The suggestions associated with this record.                                                                                                                                                                                                   |
| `avatar`              | object \| null                                                                                                   |          | The avatar associated with this record.                                                                                                                                                                                                        |
| `avatar_url`          | string · uri \| null                                                                                             |          | The avatar url associated with this record.                                                                                                                                                                                                    |
| `security_enabled`    | boolean                                                                                                          |          | Whether the agent default security guardrails are enabled.                                                                                                                                                                                     |
| `project_reference`   | string                                                                                                           |          | Project identifier or slug associated with the record.                                                                                                                                                                                         |
| `system`              | string · min length 1                                                                                            |          | Canonical system prompt for the agent. Set this field only.                                                                                                                                                                                    |
| `system_prompt`       | string · min length 1                                                                                            |          | Compatibility alias for system. Omit this field when system is present.                                                                                                                                                                        |
| `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__create_agent",
    "arguments": {
      "id": "a",
      "name": "string",
      "system": "string"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"id\":\"string\",\"name\":\"string\",\"description\":\"string\",\"model\":\"string\",\"system_prompt\":\"string\",\"thinking\":{\"enabled\":false,\"budget_tokens\":1},\"temperature\":0,\"max_steps\":1,\"allowed_models\":[\"string\"],\"skill_ids\":[\"string\"],\"skill_selection\":{\"kind\":\"omitted\",\"skill_ids\":[\"string\"]},\"skill_resolution\":{\"policy\":{\"kind\":\"all-visible\",\"source\":\"omitted\"},\"skill_ids\":[\"string\"],\"source_paths\":{},\"unresolved_entry_indexes\":[0],\"catalog_status\":\"complete\",\"evidence_scope\":\"source_catalog\"},\"skills\":false,\"all_tools_enabled\":false,\"tool_ids\":[\"string\"],\"tools\":false,\"tool_loading\":\"eager\",\"tool_result_context\":false,\"provider_tool_ids\":[\"string\"],\"knowledge\":false,\"suggestions\":[\"string\"],\"avatar\":{\"seed\":\"string\",\"archetype\":\"upright\",\"texture\":\"string\",\"color\":\"#000000\",\"shape\":\"snircle\",\"matrix\":\"0000000000000000\"},\"avatar_url\":\"string\",\"security_enabled\":false,\"source_path\":\"string\",\"source\":\"string\",\"edit_mode\":\"structured\",\"source_only_reasons\":[\"string\"]}"
      }
    ],
    "structuredContent": {
      "id": "string",
      "name": "string",
      "description": "string",
      "model": "string",
      "system_prompt": "string",
      "thinking": {
        "enabled": false,
        "budget_tokens": 1
      },
      "temperature": 0,
      "max_steps": 1,
      "allowed_models": [
        "string"
      ],
      "skill_ids": [
        "string"
      ],
      "skill_selection": {
        "kind": "omitted",
        "skill_ids": [
          "string"
        ]
      },
      "skill_resolution": {
        "policy": {
          "kind": "all-visible",
          "source": "omitted"
        },
        "skill_ids": [
          "string"
        ],
        "source_paths": {},
        "unresolved_entry_indexes": [0],
        "catalog_status": "complete",
        "evidence_scope": "source_catalog"
      },
      "skills": false,
      "all_tools_enabled": false,
      "tool_ids": [
        "string"
      ],
      "tools": false,
      "tool_loading": "eager",
      "tool_result_context": false,
      "provider_tool_ids": [
        "string"
      ],
      "knowledge": false,
      "suggestions": [
        "string"
      ],
      "avatar": {
        "seed": "string",
        "archetype": "upright",
        "texture": "string",
        "color": "#000000",
        "shape": "snircle",
        "matrix": "0000000000000000"
      },
      "avatar_url": "string",
      "security_enabled": false,
      "source_path": "string",
      "source": "string",
      "edit_mode": "structured",
      "source_only_reasons": [
        "string"
      ]
    }
  }
}
```
