Skip to main content
Glama

Feature Flags

gitlab_feature_flags
Destructive

Define gradual rollout strategies for project features by managing feature flags and user lists with percentage, user-targeted, or environment-scoped configurations.

Instructions

Use {"action":"feature_flag_create","params":{...}}; only top-level keys are action and params. Action params schema: gitlab://schema/meta/gitlab_feature_flags/.

Manage project feature flags and feature-flag user lists for gradual rollouts. Delete is destructive; setting active=false disables the flag but preserves history. When to use: define rollout strategies (percentage, user-targeted, environment-scoped) for a project's feature flags, and manage the user lists referenced by gitlabUserList strategies. NOT for: GitLab instance-level feature flags (admin only — use gitlab_admin), environment definitions or protection (use gitlab_environment), code branching (use gitlab_branch), CI/CD variables (use gitlab_ci_variable).

Returns:

  • *_list: array with pagination (page, per_page, total, next_page).

  • *_get / *_create / *_update: the resource object (flag includes strategies and scopes; user list includes user_xids).

  • *_delete: {success: bool, message: string}. Errors: 404 not found, 403 forbidden (hint: requires Developer+ role), 400 invalid params (hint: strategies/scopes JSON shape).

Param conventions: * = required. All actions need project_id*. version = new_version_flag (legacy legacy_flag deprecated).

strategies shape: [{name, parameters, scopes: [{environment_scope}]}] where name ∈ {default, gradualRolloutUserId, userWithId, flexibleRollout, gitlabUserList}. parameters per strategy: gradualRolloutUserId={groupId, percentage}; userWithId={userIds}; flexibleRollout={groupId, rollout, stickiness}; gitlabUserList={userListId}.

Feature flags (feature_flag_*):

  • feature_flag_list: project_id*, scope (enabled/disabled), page, per_page

  • feature_flag_get / feature_flag_delete: project_id*, name*

  • feature_flag_create: project_id*, name*, version*, description, active (bool), strategies

  • feature_flag_update: project_id*, name*, description, active (bool), strategies

User lists (ff_user_list_*) — named sets of user IDs referenced by gitlabUserList strategies:

  • ff_user_list_list: project_id*, page, per_page

  • ff_user_list_get / ff_user_list_delete: project_id*, user_list_iid*

  • ff_user_list_create: project_id*, name*, user_xids* (comma-separated user IDs)

  • ff_user_list_update: project_id*, user_list_iid*, name, user_xids

See also: gitlab_environment (environment scopes referenced by strategies), gitlab_admin (instance-level feature flags), gitlab_project (project membership and settings).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesAction to perform. Pick exactly one of the values in `enum`. Each action expects its own `params` object — see the tool description for the per-action parameter list.
paramsNoAction-specific parameters as a JSON object. Required and optional fields differ per action. This envelope schema stays broad; runtime validation applies the chosen action's schema after reserved meta keys like `confirm` are stripped. For the JSON Schema of a specific action's `params`, read the MCP resource `gitlab://schema/meta/{tool}/{action}` (replace placeholders with the tool name and the chosen action).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
next_stepsNoOptional. Suggested follow-up actions or tool calls for the LLM, contextual to the result.
paginationNoPresent on list actions. Use `has_more` and `next_page` to paginate through results.
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations include destructiveHint:true and openWorldHint:true. The description adds context: delete is destructive, setting active=false disables but preserves history, error responses (404, 403, 400), and authorization requirements. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Comprehensive but somewhat lengthy; however, it is well-structured with sections (when to use, returns, param conventions, per-action details, see also). Every sentence adds value, though could be slightly trimmed for density.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the high complexity (multiple actions, nested objects, output schema exists), the description covers input parameters per action, output format (including pagination), error handling, and related tools. It also mentions the external schema resource for per-action validation. Fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% for the two top-level parameters. The description provides detailed per-action parameter lists, including required fields, strategies shape, and action-specific details (e.g., version, active, strategies). Adds significant value beyond schema alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool manages project feature flags and user lists for gradual rollouts. It lists specific actions (feature_flag_*, ff_user_list_*) and distinguishes from sibling tools like gitlab_admin (instance-level flags) and gitlab_environment (environment definitions).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to use (defining rollout strategies, managing user lists for gitlabUserList strategies) and when not (instance-level flags, environment definitions, code branching, CI/CD variables). Provides hints like 'Delete is destructive' and 'requires Developer+ role'.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jmrplens/gitlab-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server