gitlab_create_schedule
Create a new GitLab CI/CD schedule with cron, branch or tag, timezone, and variables to automate recurring pipeline runs.
Instructions
Create a new CI/CD schedule with the given cron and variables.
Not idempotent: duplicate calls create duplicate schedules with auto-incrementing IDs.
Examples:
- "Schedule a nightly build on master at 02:00 Europe/Berlin" →
description='Nightly build', cron='0 2 * * *', ref='master',
timezone='Europe/Berlin', variables={'NIGHTLY': '1'}
- Don't use to update existing schedules — use gitlab_update_schedule.
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": {
"description": "<description>",
"cron": "<cron>",
"variables": "<variables>",
"project_path": "<project_path>"
},
"name": "gitlab_create_schedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch or tag to run. | master |
| cron | Yes | Cron expression in 5 fields (e.g. '0 2 * * *'). | |
| active | No | Activate the schedule immediately. | |
| timezone | No | IANA timezone for the cron (e.g. 'Europe/Berlin'). | UTC |
| variables | Yes | CI variables to attach to the schedule (key -> value). | |
| description | Yes | Human-readable description. | |
| 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 |