Skip to main content
Glama

Create schedule

create_schedule

Run an agent or orchestration on a cadence. Either an interval (interval_value + interval_unit) or a cron expression — not both. It is created paused: show the person the message each run starts with and when it would first run, and on their yes turn it on with turn_on_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": {
      "name": "<name>",
      "target_type": "<target_type>",
      "target_id": "<target_id>",
      "prompt": "<prompt>",
      "schedule_type": "<schedule_type>"
    },
    "name": "create_schedule"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
promptYesThe message the scheduled run starts with
timezoneNoThe timezone its cron is read in, as a name like America/New_York or Europe/Amsterdam: the one the person named, else their own. Leave it out for UTC
target_idYesThe agent or orchestration id to run
descriptionNo
target_typeYes
interval_unitNo
schedule_typeYes
interval_valueNo
cron_expressionNoStandard 5-field cron on the schedule's own clock (its timezone), the time as they said it, never converted to UTC, e.g. '0 8 * * 1-5'
missed_run_policyNoA time it missed (the machine was off): run it once as soon as it can, or skip it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare that this is a non-read-only, non-destructive, non-idempotent write. The description adds genuinely new behavior: the schedule is created in a paused state, it requires a human confirmation step, and the required 'prompt' is the message each run starts with. That paused-by-default lifecycle would otherwise be invisible to an agent.

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?

Three sentences, front-loaded with the purpose, then the mode constraint, then the human-approval workflow. Every clause adds information; nothing is repeated from the schema.

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 an 11-parameter mutation with no output schema and no annotations covering lifecycle, the definition covers mode selection and confirmation flow but says nothing about return shape (e.g. whether an id comes back) or the timezone/missed_run_policy semantics. Adequate to call correctly, not fully complete.

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

Parameters4/5

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

Schema coverage is only 45%, so the description must carry weight, and it does for the critical part: interval needs interval_value paired with interval_unit, cron needs cron_expression, and the two are mutually exclusive — a constraint the schema does not encode. Undescribed parameters remain (name, description, target_type, interval_value/unit), which keeps this below 5.

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?

"Run an agent or orchestration on a cadence" names a specific resource (agent/orchestration), a specific outcome (recurring runs), and the scheduling modes (interval vs cron). An agent can distinguish this from turn_on_schedule or trigger_schedule without opening a 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?

The definition explicitly names the follow-up alternative and its trigger condition: created paused, confirm with the person, then turn it on with turn_on_schedule. It does not contrast with update_schedule or trigger_schedule, so the choice space is only partly mapped, but the primary branch is unambiguous.

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.