You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**create_cron_job** - Create a new cron job in your Render account
96
+
97
+
-`name`: A unique name for your cron job (string, required)
98
+
-`schedule`: Cron schedule expression (string, required). Uses standard cron syntax with 5 fields: minute (0-59), hour (0-23), day of month (1-31), month (1-12), day of week (0-6, Sunday=0). Examples:
99
+
-`0 0 * * *`: Daily at midnight
100
+
-`*/15 * * * *`: Every 15 minutes
101
+
-`0 9 * * 1-5`: Weekdays at 9am
102
+
-`0 0 1 * *`: First day of each month at midnight
103
+
-`runtime`: Runtime environment for your cron job (string, required). Accepted values:
104
+
-`node`
105
+
-`python`
106
+
-`go`
107
+
-`rust`
108
+
-`ruby`
109
+
-`elixir`
110
+
-`docker`
111
+
-`buildCommand`: Command used to build your cron job (string, required)
112
+
-`startCommand`: Command that runs when your cron job executes (string, required)
mcp.WithDescription("Create a new cron job in your Render account. "+
409
+
"A cron job is a scheduled task that runs on a recurring schedule specified using cron syntax. "+
410
+
"Cron jobs are ideal for background tasks like data processing, cleanup operations, sending emails, or generating reports. "+
411
+
"By default, these services are automatically deployed when the specified branch is updated. "+
412
+
"This tool is currently limited to support only a subset of the cron job configuration parameters. "+
413
+
"It also only supports cron jobs which don't use Docker, or a container registry. "+
414
+
"To create a cron job without those limitations, please use the dashboard at: "+config.DashboardURL()+"/create"),
415
+
mcp.WithToolAnnotation(mcp.ToolAnnotation{
416
+
Title: "Create cron job",
417
+
ReadOnlyHint: pointers.From(false),
418
+
IdempotentHint: pointers.From(false),
419
+
OpenWorldHint: pointers.From(true),
420
+
}),
421
+
mcp.WithString("name",
422
+
mcp.Required(),
423
+
mcp.Description("A unique name for your cron job."),
424
+
),
425
+
mcp.WithString("schedule",
426
+
mcp.Required(),
427
+
mcp.Description("The cron schedule expression that determines when the job runs. "+
428
+
"Uses standard cron syntax with 5 fields: minute (0-59), hour (0-23), day of month (1-31), month (1-12), day of week (0-6, Sunday=0). "+
429
+
"Examples: '0 0 * * *' (daily at midnight), '*/15 * * * *' (every 15 minutes), '0 9 * * 1-5' (weekdays at 9am), '0 0 1 * *' (first day of each month at midnight). "+
430
+
"For natural language requests like 'every hour' or 'daily at 3pm', convert to cron syntax."),
431
+
),
432
+
mcp.WithString("repo",
433
+
mcp.Description("The repository containing the source code for your cron job. Must be a valid Git URL that Render can clone and deploy. Do not include the branch in the repo string. You can instead supply a 'branch' parameter."),
434
+
),
435
+
mcp.WithString("branch",
436
+
mcp.Description("The repository branch to deploy. This branch will be deployed when you manually trigger deploys and when auto-deploy is enabled. If left empty, this will fall back to the default branch of the repository."),
437
+
),
438
+
mcp.WithString("autoDeploy",
439
+
mcp.Description("Whether to automatically deploy the cron job when the specified branch is updated. Defaults to 'yes'."),
mcp.Description("The command used to build your cron job. For example, 'npm install' for Node.js or 'pip install -r requirements.txt' for Python."),
456
+
),
457
+
mcp.WithString("startCommand",
458
+
mcp.Required(),
459
+
mcp.Description("The command that runs when your cron job executes. For example, 'node scripts/cleanup.js' for Node.js or 'python scripts/process_data.py' for Python."),
460
+
),
461
+
mcp.WithString("region",
462
+
mcp.Description("The geographic region where your cron job will be deployed. Defaults to Oregon."),
463
+
mcp.Enum(mcpserver.RegionEnumValues()...),
464
+
mcp.DefaultString(string(client.Oregon)),
465
+
),
466
+
mcp.WithArray("envVars",
467
+
mcp.Description("Environment variables to set for your cron job. These are exposed during builds and at runtime."),
468
+
mcp.Items(
469
+
map[string]interface{}{
470
+
"type": "object",
471
+
"additionalProperties": false,
472
+
"required": []string{"key", "value"},
473
+
"properties": map[string]interface{}{
474
+
"key": map[string]interface{}{
475
+
"type": "string",
476
+
"description": "The name of the environment variable",
477
+
},
478
+
"value": map[string]interface{}{
479
+
"type": "string",
480
+
"description": "The value of the environment variable",
0 commit comments