---
title: "corestack_deployments_variables_list"
url: https://docs.corefinity.com/mcp/tools/corestack_deployments_variables_list
type: tool
last_updated: 2026-11-13
feature: deployment-variables
related:
  - https://docs.corefinity.com/api/reference/deployments/list-site-deployment-variables.md
  - https://docs.corefinity.com/guides/sites/code-and-deployments/variables-and-secrets.md
---
# corestack_deployments_variables_list

**Deployment variables.** The environment's CF_ deployment variables: names, masks, log visibility and the stages whose lines use them. Never a value. Scope: read.

- Scope: `read`
- Runs as a task: no

## When to use it

The environment's CF_ deployment variables: names, masks, log visibility and the stages whose lines use them. Never a value.

A variable named as a build tool's credential (`COMPOSER_AUTH`, `NPM_TOKEN`, `NODE_AUTH_TOKEN`, `YARN_NPM_AUTH_TOKEN`, `GITHUB_TOKEN`, `GITLAB_TOKEN`, `BITBUCKET_TOKEN`) that no stage reads as `$CF_<name>` carries `tool_credential`, a sentence to show the person: builds see it as CF_<name>, so the tool never reads it, and the credentials belong under Private registries (`corestack_deployments_secret_set`). It is null for every other variable. New variables of those names are refused.

The same action in the public REST API, with the same checks, refusals and scope: `GET /api/corestack/sites/{site}/deployments/variables`.

## Inputs

- `site_id` (integer, ≥ 1, required)

### Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "site_id": {
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "site_id"
  ],
  "type": "object"
}
```

## Refusals

- The refusals every tool can answer: `invalid_arguments`, `tenant_mismatch`, `scope_required`, `pin_refused`, `rate_limited`, `temporarily_unavailable`, `internal_error` (corestack://guides/how-this-server-works).

## Example

```json
{
  "name": "corestack_deployments_variables_list",
  "arguments": {
    "site_id": 4211
  }
}
```

## Prompt

```text
Using the Corefinity MCP server, call corestack_deployments_variables_list with site_id 4211. (Deployment variables.) Tell me what it returned.
```

## The same task elsewhere

- Endpoint: [GET /api/corestack/sites/{site}/deployments/variables](https://docs.corefinity.com/api/reference/deployments/list-site-deployment-variables.md)
- Guide: [Variables](https://docs.corefinity.com/guides/sites/code-and-deployments/variables-and-secrets.md)
