# List environment domains

Tool: `veryfront__list_domains`

List environment domains. Requires project.read.

## Arguments

| Name                | Type                                   | Required | Description                                                                                                             |
| ------------------- | -------------------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------- |
| `project_reference` | string                                 |          | Project ID or slug                                                                                                      |
| `environment_id`    | string                                 | Yes      | Environment ID                                                                                                          |
| `cursor`            | string                                 |          | Pagination cursor: a domain ID in this environment. An unknown cursor is rejected.                                      |
| `limit`             | integer · min 1 · max 100 · default 20 |          | Results per page, 1 to 100. Defaults to 20.                                                                             |
| `sort_by`           | string                                 |          | Sort field. "name" sorts by the domain name, "updated\_at" by the domain update timestamp. One of `name`, `updated_at`. |
| `sort_order`        | string                                 |          | Sort order: "asc" or "desc". One of `asc`, `desc`.                                                                      |

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

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"data\":[{\"id\":\"00000000-0000-0000-0000-000000000000\",\"domain\":\"string\",\"environment_id\":\"00000000-0000-0000-0000-000000000000\",\"project_id\":\"00000000-0000-0000-0000-000000000000\",\"created_at\":\"string\",\"updated_at\":\"string\"}],\"page_info\":{\"self\":\"string\",\"first\":null,\"next\":\"string\",\"prev\":\"string\"}}"
      }
    ],
    "structuredContent": {
      "data": [
        {
          "id": "00000000-0000-0000-0000-000000000000",
          "domain": "string",
          "environment_id": "00000000-0000-0000-0000-000000000000",
          "project_id": "00000000-0000-0000-0000-000000000000",
          "created_at": "string",
          "updated_at": "string"
        }
      ],
      "page_info": {
        "self": "string",
        "first": null,
        "next": "string",
        "prev": "string"
      }
    }
  }
}
```
