list_flags
List feature flags in a project to discover, audit, or scope workflows. Supports pagination, sorting, and switching between active/archived flags.
Instructions
List feature flags in an Unleash project, with optional pagination and sort order. By default returns active flags only; set archived=true to list archived flags instead (active and archived flags are disjoint result sets in Unleash and cannot be combined in one response). Use this to discover flags before creating new ones, audit flag inventory for cleanup (call twice — once for active, once for archived), or scope a workflow to a specific project. Returns name, type, description, archived status, and URL for each flag.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | No | Project ID to list flags from (optional if UNLEASH_DEFAULT_PROJECT is set; auto-resolved when a single project exists) | |
| archived | No | Set to true to list archived flags instead of active ones. Defaults to false (active flags only). Active and archived flags cannot be returned in the same response — call this tool twice (once with archived=false, once with archived=true) to assemble a full inventory for audit workflows. | |
| limit | No | Maximum number of flags to return per page (default: server page size, typically 50) | |
| order | No | Sort order by flag name (default: asc) | |
| offset | No | Number of flags to skip for pagination (default: 0) |