Skip to main content
Glama

Create a schedule

create_schedule

Start a saved workflow on a timetable. Needs an administrator key. Each start is a run billed to the organization, with the cost cap given here (or the default). Use preview_schedule first to check the timetable. A schedule pauses itself after repeated failed starts. An organization can have 50 schedules.

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": {
      "workflow": "<workflow>",
      "cron": "<cron>"
    },
    "name": "create_schedule"
  }
}

Input Schema

NameRequiredDescriptionDefault
cronYesFive fields (minute hour day-of-month month day-of-week), such as "0 9 * * 1-5", or a descriptor such as @daily or @every 15m. At most once a minute.
nameNoA label for the schedule.
inputNoAny JSON the agent receives as its input on every start (maximum 1 MiB).
notifyNoTell a saved HTTP connection when each run it starts has finished, so nobody has to check on it: Ephemeral POSTs JSON (event, the run or batch with its status, output, error and final cost, and a one-line text) to the connection's URL plus path, with the connection's own credentials. The connection must be an HTTP connection that allows POST (see list_connections); a failed delivery is retried for a while.
enabledNoWhether the schedule starts runs (default true).
timezoneNoIANA time zone name, such as Europe/Madrid (default UTC).
workflowYesName of the saved workflow to run (see list_workflows).
max_cost_microsNoCost cap of each run, in millionths of a dollar; defaults to default_max_cost_micros (get_account). On the hosted service it must cover at least the run fee plus compute for the workflow's whole timeout (with the surcharge for a zero-data-retention workflow); a smaller cap is refused, and the error's budget object gives the figures, required_max_cost_micros and longest_timeout_seconds.
skip_if_runningNoSkip a start while the previous run is still going (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / notify
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Tell a saved HTTP connection when each run it starts has finished, so nobody has to check on it: Ephemeral POSTs JSON (event, the run or batch with its status, output, error and final cost, and a one-line text) to the connection's URL plus path, with the connection's own credentials. The connection must be an HTTP connection that allows POST (see list_connections); a failed delivery is retried for a while.",
      +  "properties": {
      +    "connection": {
      +      "description": "Name of the saved HTTP connection.",
      +      "type": "string"
      +    },
      +    "on": {
      +      "description": "always (default), or failure: only when a run did not succeed.",
      +      "enum": [
      +        "always",
      +        "failure"
      +      ],
      +      "type": "string"
      +    },
      +    "path": {
      +      "description": "A path relative to the connection's URL, such as /hooks/ephemeral (default: the URL itself).",
      +      "maxLength": 512,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "connection"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / max_cost_micros / description
      Previous value: -"Cost cap of each run, in millionths of a dollar."New value: +"Cost cap of each run, in millionths of a dollar; defaults to default_max_cost_micros (get_account). On the hosted service it must cover at least the run fee plus compute for the workflow's whole timeout (with the surcharge for a zero-data-retention workflow); a smaller cap is refused, and the error's budget object gives the figures, required_max_cost_micros and longest_timeout_seconds."
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, destructive=false, idempotent=false), the description discloses the admin-key requirement, that each start is a billed run charged against a cost cap, the 50-schedule org quota, and that a schedule self-pauses after repeated failed starts. That is substantial operational context an agent could not infer from structured fields.

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

Conciseness5/5

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

Five compact sentences, front-loaded with purpose, then prerequisite, cost/billing, failure behavior, and quota. No filler; each sentence carries a distinct operational fact.

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

Completeness4/5

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

For a 9-parameter creation tool with a nested notify object and no output schema, the description covers authorization, cost, quota, prerequisite, and lifecycle behavior well. The main omission is what the call returns (e.g., the created schedule's identifier), which matters since no output schema exists.

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 description coverage is 100%, so the nested notify object, cron format, timezone, and cost-cap semantics are already documented in the schema. The description only echoes that the cost cap is taken 'here (or the default)', adding no meaning beyond the schema.

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?

The first sentence gives a specific verb and resource ('Start a saved workflow on a timetable'), which distinguishes it from create_run (one-off) and preview_schedule (validation). An agent can identify the tool's job without opening the schema.

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

Usage Guidelines4/5

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

It states an explicit prerequisite ('Use preview_schedule first to check the timetable') and an authorization requirement ('Needs an administrator key'). It does not explicitly contrast with create_run/create_runs for one-time execution, but the scheduling context is clear.

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