Skip to main content
Glama

Schedule a workflow or pipeline

set_schedule
Destructive

Run a deployed workflow on a schedule (pass workflow_id), a deployed pipeline (pass pipeline_id, and optionally deployment and variant from deploy_pipeline), or change a schedule (pass schedule_id). Deploy first with deploy_workflow or deploy_pipeline. A new repeating workflow schedule starts off, runs once straight away as a test, and switches on by itself when the test succeeds; a pipeline schedule has no test run and is on once saved. Scheduled runs cost money, so call it first without approved to get the times and the cost per run, tell the person, and call again with approved: true only after they say yes. No cron: use recurrence.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_schedule"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
variantNoPipeline only: the variant name in that deployment. Default: its first variant.
approvedNotrue only after the person has agreed to the schedule and its cost.
timezoneNoIANA name, e.g. Europe/London. Default: the account's timezone.
deploymentNoPipeline only: the deployment name. Default: the pipeline's oldest live deployment.
recurrenceNounit day: interval, time_of_day. week: interval, time_of_day, weekdays. month: interval, time_of_day, day_of_month (1-31 or "last"). hour or minute (at least 5): interval, time_of_day (the start). once: run_at.
pipeline_idNoThe deployed pipeline to schedule (for a new schedule, instead of workflow_id).
schedule_idNoThe schedule to change (from list_schedules).
workflow_idNoThe deployed workflow to schedule (for a new schedule).
input_valuesNoStart input values for every scheduled run, keyed by input name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / deployment
      Added value: +{
      +  "description": "Pipeline only: the deployment name. Default: the pipeline's oldest live deployment.",
      +  "type": "string"
      +}
    • addedInput schema / properties / pipeline_id
      Added value: +{
      +  "description": "The deployed pipeline to schedule (for a new schedule, instead of workflow_id).",
      +  "type": "string"
      +}
    • addedInput schema / properties / variant
      Added value: +{
      +  "description": "Pipeline only: the variant name in that deployment. Default: its first variant.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With annotations already flagging destructiveHint and non-idempotency, the description adds substantial context the annotations cannot convey: scheduled runs cost money, workflow schedules do a one-off test run before switching on, pipeline schedules are live immediately, and approval is gated on human consent. It stops short of saying what happens to an existing schedule's settings when schedule_id is passed, which matters given destructiveHint=true.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the mode selection, then prerequisites, then behavior, then the approval protocol — a sensible ordering. It is dense and long-ish, but nearly every clause carries operational information; the workflow-vs-pipeline test-run contrast is the most expendable sentence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter mutation tool with a nested recurrence object and no output schema, the description covers the mode dispatch, deployment prerequisite, cost/approval loop, and post-creation state changes. An agent has enough to call it correctly without guessing, and the return payload is adequately implied ('get the times and the cost per run').

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 90%, so most parameters are already documented. The description adds routing meaning (which id to pass per mode, that deployment/variant are pipeline-only and come from deploy_pipeline) but does not explain name, timezone, or input_values beyond the schema. Baseline 3 is appropriate since the schema carries the detail.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a concrete verb and enumerates the three modes with the parameter that selects each (workflow_id, pipeline_id, schedule_id). An agent can tell immediately whether it is creating or changing a schedule, and the distinction from run_workflow/run_pipeline is implicit in 'on a schedule'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states the prerequisite ('Deploy first with deploy_workflow or deploy_pipeline') and prescribes a two-call protocol: call without approved to fetch times and cost, confirm with the person, then call with approved: true. It also rules out a competing input style ('No cron: use recurrence').

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources