gitlab_update_schedule
Update an existing GitLab CI/CD pipeline schedule by changing its cron, active state, ref, description, or variables; only supplied fields change and variables are replaced entirely.
Instructions
Update an existing schedule. Only provided fields change.
Destructive when variables is set: the entire variable set is replaced,
so ensure the caller sends a full list.
Examples:
- "Deactivate schedule 42" → schedule_id=42, active=False
- "Change cron of schedule 42 to hourly" → schedule_id=42, cron='0 * * * *'
- Don't pass variables unless you want to replace them entirely.
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": {
"schedule_id": "<schedule_id>",
"project_path": "<project_path>"
},
"name": "gitlab_update_schedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | New ref (branch/tag). | |
| cron | No | New cron expression. | |
| active | No | New active state. | |
| variables | No | New variable set. If provided, **replaces all existing variables** — pre-existing ones are deleted first. Omit to leave variables untouched. | |
| description | No | New description. | |
| schedule_id | Yes | Schedule ID to update. | |
| project_path | Yes | GitLab project path (e.g. 'my-org/my-repo'). Required by default. For legacy deployments only, set GITLAB_ALLOW_DEFAULT_PROJECT=true to use GITLAB_PROJECT_PATH when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| cron | No | ||
| active | No | ||
| status | No | ||
| description | No | ||
| schedule_id | No |