# Install agent

Tool: `veryfront__install_agent`

Install agent. Requires project.agents.write.

## Arguments

| Name                | Type                    | Required | Description                                                                                                                                                                             |
| ------------------- | ----------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `agent_id`          | string · min length 1   | Yes      | Catalog agent identifier.                                                                                                                                                               |
| `relation`          | string · default editor |          | Relation of the agent access grant that installs the catalog agent. Installing creates or reuses an access grant; the agent is not copied. One of `owner`, `admin`, `editor`, `viewer`. |
| `project_reference` | string · min length 1   |          | Project identifier or slug that scopes the tool call.                                                                                                                                   |

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

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"id\":\"string\",\"name\":\"string\",\"description\":\"string\",\"provider\":{\"organization\":\"string\",\"url\":\"string\"},\"version\":\"string\",\"capabilities\":{\"streaming\":false,\"push_notifications\":false,\"extensions\":[\"string\"]},\"default_input_modes\":[\"string\"],\"default_output_modes\":[\"string\"],\"tools\":[\"string\"],\"skills\":[{\"id\":\"string\",\"name\":\"string\",\"description\":\"string\",\"tags\":[\"string\"],\"examples\":[\"string\"]}],\"suggestions\":[\"string\"],\"kind\":\"source_project_agent\",\"can_run\":false,\"source_type\":\"project\",\"installed_access\":{\"grant_id\":\"00000000-0000-0000-0000-000000000000\",\"relation\":\"owner\",\"service_account_id\":\"00000000-0000-0000-0000-000000000000\",\"project_id\":\"00000000-0000-0000-0000-000000000000\",\"status\":\"string\"},\"runtime_readiness\":{\"status\":\"ready\",\"reason\":\"string\",\"runtime_target_kind\":\"registered_push_service\",\"runtime_service_key\":\"string\"},\"source_path\":\"string\",\"edit_mode\":\"structured\",\"avatar_url\":\"string\",\"model\":\"string\",\"url\":\"string\"}"
      }
    ],
    "structuredContent": {
      "id": "string",
      "name": "string",
      "description": "string",
      "provider": {
        "organization": "string",
        "url": "string"
      },
      "version": "string",
      "capabilities": {
        "streaming": false,
        "push_notifications": false,
        "extensions": [
          "string"
        ]
      },
      "default_input_modes": [
        "string"
      ],
      "default_output_modes": [
        "string"
      ],
      "tools": [
        "string"
      ],
      "skills": [
        {
          "id": "string",
          "name": "string",
          "description": "string",
          "tags": [
            "string"
          ],
          "examples": [
            "string"
          ]
        }
      ],
      "suggestions": [
        "string"
      ],
      "kind": "source_project_agent",
      "can_run": false,
      "source_type": "project",
      "installed_access": {
        "grant_id": "00000000-0000-0000-0000-000000000000",
        "relation": "owner",
        "service_account_id": "00000000-0000-0000-0000-000000000000",
        "project_id": "00000000-0000-0000-0000-000000000000",
        "status": "string"
      },
      "runtime_readiness": {
        "status": "ready",
        "reason": "string",
        "runtime_target_kind": "registered_push_service",
        "runtime_service_key": "string"
      },
      "source_path": "string",
      "edit_mode": "structured",
      "avatar_url": "string",
      "model": "string",
      "url": "string"
    }
  }
}
```
