# list_secrets

Source: https://modulify.ai/docs/mcp/secrets/list-secrets

Lists the environment variables configured for a site, the same set the Secrets tab shows.

- Title: List environment variable names
- Scope: `config:read`
- Access: Read only

Only the names and flags come back, never the values. Each variable comes with its `_id` and `Key`, the `IsSecret` flag for a value stored encrypted, the `IsLocked` flag for a platform-managed variable, and when it was created and last updated. Reading a value back needs `get_secret` or `get_all_secrets` and the separate `credentials:reveal` scope.

It is how a client checks whether a site already has a key such as `STRIPE_SECRET_KEY` before asking you for one. The `_id` is the `secretId` that `get_secret`, `delete_secret` and `rename_secret` take. See [Secrets](https://modulify.ai/docs/data/secrets).

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `projectId` | string | Yes | The site id. |