Create project CI/CD variable
create_project_ci_variableCreate 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project": "<project>",
"key": "<key>",
"value": "<value>"
},
"name": "create_project_ci_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| raw | No | Whether the value is literal. Set false to enable variable expansion. | |
| value | Yes | ||
| masked | No | ||
| project | Yes | GitLab project ID or full path such as group/project. | |
| protected | No | ||
| description | No | ||
| variable_type | No | ||
| environment_scope | No | ||
| masked_and_hidden | No | Create a masked variable whose value is also hidden in GitLab. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GitLab response normalized for model use. |