Update project CI/CD variable
update_project_ci_variableUpdate a GitLab project CI/CD variable's value and settings without retrieving its current value. Assign a new value, adjust type, protection, or environment scope as needed.
Instructions
Update 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": "update_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 | ||
| filter_environment_scope | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GitLab response normalized for model use. |