Skip to main content
Glama

Create project CI/CD variable

create_project_ci_variable

Create a CI/CD variable for a GitLab project without exposing its value in the response. Specify the project, key, and value, with options for masking, protection, environment scope, variable type, and expansion behavior.

Instructions

Create a project CI/CD variable without returning its value.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes
rawNoWhether the value is literal. Set false to enable variable expansion.
valueYes
maskedNo
projectYesGitLab project ID or full path such as group/project.
protectedNo
descriptionNo
variable_typeNo
environment_scopeNo
masked_and_hiddenNoCreate a masked variable whose value is also hidden in GitLab.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYesGitLab response normalized for model use.
Behavior3/5

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

Annotations already communicate readOnly=false, destructive=false, and idempotent=false. The description adds one genuinely useful behavioral detail—that the variable's value is not returned—but does not disclose replacement behavior, auth requirements, or what happens on duplicate keys. This is modest added value beyond the annotations.

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

Conciseness5/5

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

The description is a single, front-loaded sentence with no filler. Every word contributes meaning, including the non-obvious detail that the created variable's value is not returned.

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

Completeness2/5

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

For a 10-parameter mutating tool with sparse parameter documentation, this one-sentence description is too thin. It does not address duplicate variable behavior, environment scoping, variable type implications, or project vs group selection guidance. The presence of an output schema reduces the need to explain return values, but does not compensate for these gaps.

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

Parameters2/5

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

With only 30% schema description coverage and 10 parameters, the description should compensate by explaining or contextualizing parameters like masked, protected, variable_type, and environment_scope. It does not; it only restates the tool's action. The sparse schema descriptions and parameter names are left to carry the burden.

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 uses a specific verb ('Create') and resource ('project CI/CD variable'), and adds a useful behavioral differentiator: 'without returning its value.' This clearly distinguishes it from sibling tools like create_group_ci_variable, update_project_ci_variable, and list_project_ci_variables.

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

Usage Guidelines4/5

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

The description makes clear this is for creating project-level CI/CD variables, as opposed to group-level or update/list operations implied by sibling names. However, it does not explicitly state when-not-to-use it, such as whether to call update_project_ci_variable instead if the variable already exists.

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/CobolJunkie/gitlab-mcp'

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