Skip to main content
Glama

schedule_job

Create recurring or one-off scheduled agent runs for repositories, returning the schedule ID, frequency, next run time, and run intent.

Instructions

Create a recurring (or one-off) scheduled agent run owned by the caller.

Returns {id, name, frequency, next_run_at, is_enabled, repos, intent} or {"error": ...}.

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>",
      "prompt": "<prompt>",
      "repos": "<repos>",
      "frequency": "<frequency>"
    },
    "name": "schedule_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesHuman-readable schedule name.
timeNoTime of day 'HH:MM' (24-hour). Required for daily/weekdays/weekly.
mutedNoMute notifications for this schedule's runs.
reposYes1-20 repositories the schedule runs against, each with the same `prompt`.
intentNowatch-find | do-change | report. Omit for the default (watch-find).
promptYesWhat the agent should do on each run. Same guidance as submit_job: describe the change; do not ask it to commit, push, or open PRs — those run automatically.
run_atNoISO-8601 datetime for a one-off 'once' schedule. Naive values use the server timezone; offsets are honored. Must be a future time (up to ~60s in the past is tolerated).
frequencyYeshourly | daily | weekdays | weekly (Mondays) | custom | once.
agent_modelNoModel override 'provider_slug:model_name'. Omit for the repository's models.agent model, else the system default; the call is refused when no system default is configured.
environmentNoSandbox environment name or UUID. Omit to auto-resolve per repo each time the schedule fires.
mcp_overridesNoOptional MCP servers to switch on or off for this schedule's runs, relative to the default set, e.g. {"grafana": true}: true adds an on-demand server, false drops an active one.
cron_expressionNoFive-field cron expression. Required for the 'custom' frequency.
agent_thinking_levelNoThinking effort: minimal/low/medium/high.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses ownership and the return payload including the error branch, but says nothing about authorization requirements, how many schedules a caller may hold, or what happens when a schedule fires relative to the caller's credentials.

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?

Two tight sentences, front-loaded with the action and followed by the return contract, with no filler. The double-backtick markup around the return shape is minor noise but the content earns its place, especially since there is no output schema.

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

Completeness3/5

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

For a 13-parameter creation tool with no annotations and no output schema, the description covers the return value and the recurring/one-off distinction but leaves behavioral gaps: no rate limits, no permission model, no interaction rules between frequency and time/run_at/cron beyond what the schema already states.

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% and all 13 parameters are documented in the schema, including enum-ish frequency values and frequency-dependent requirements for time/cron_expression/run_at. The description adds no parameter meaning beyond that, so the baseline 3 applies.

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

Purpose4/5

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

States a specific verb and resource ("Create a ... scheduled agent run") and adds scope detail ("recurring (or one-off)", "owned by the caller"). It is clearly distinguishable from list_scheduled_jobs and get_job_status, though it never explicitly contrasts with submit_job, the nearest sibling.

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

Usage Guidelines3/5

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

The parenthetical "(or one-off)" hints that this tool covers both recurring and single-run scheduling, implying usage, but there is no explicit when-to-use / when-not-to-use rule and no pointer to submit_job as the alternative for immediate runs.

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