# List environment variables

Tool: `veryfront__list_environment_variables`

List the variables of an environment, with masked values. Requires project.read.

## Arguments

| Name                | Type                                   | Required | Description                                                                             |
| ------------------- | -------------------------------------- | -------- | --------------------------------------------------------------------------------------- |
| `project_reference` | string                                 |          | Project ID or slug                                                                      |
| `environment_id`    | string · uuid                          | Yes      | Environment ID containing the variable.                                                 |
| `cursor`            | string · uuid                          |          | Cursor for pagination (environment variable ID).                                        |
| `limit`             | integer · min 1 · max 100 · default 20 |          | Maximum number of environment variables to return. Defaults to 20 and is capped at 100. |
| `sort_by`           | string · default key                   |          | Sort field. Defaults to "key". One of `key`, `updated_at`.                              |
| `sort_order`        | string · default asc                   |          | Sort order. Defaults to "asc". 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_environment_variables",
    "arguments": {
      "environment_id": "00000000-0000-0000-0000-000000000000"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"data\":[{\"id\":\"00000000-0000-0000-0000-000000000000\",\"key\":\"string\",\"value\":\"********\",\"has_value\":false}],\"page_info\":{\"self\":\"string\",\"first\":null,\"next\":\"string\",\"prev\":\"string\"}}"
      }
    ],
    "structuredContent": {
      "data": [
        {
          "id": "00000000-0000-0000-0000-000000000000",
          "key": "string",
          "value": "********",
          "has_value": false
        }
      ],
      "page_info": {
        "self": "string",
        "first": null,
        "next": "string",
        "prev": "string"
      }
    }
  }
}
```
