Skip to main content
Glama

create_routine

Schedule one-time or recurring unattended routines in Rota using a prompt or project skill. Approvals are bypassed, and the user is notified when an agent adds one.

Instructions

Schedule a new routine in Rota. It runs unattended on its schedule with approvals bypassed, and Rota notifies the user that an agent added it. Give a prompt or a skill, and either scheduledAt for one time or schedule for repetition.

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": {
      "id": "<id>",
      "workingDirectory": "<workingDirectory>"
    },
    "name": "create_routine"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe routine's id, such as weekly-report.
nameNoA title for people; the id when left out.
modelNoA model the harness's CLI lists; null for its default.
skillNoA project skill in .claude/skills/<skill>/SKILL.md; writes the usual prompt that runs it.
effortNoReasoning effort, such as low, medium or high; null for the model's default.
promptNoWhat the agent is asked each run, or the command for shell.
enabledNoWhether it runs on its schedule. New routines are on unless this is false.
harnessNoWhere it runs: claude (Claude Code), codex, grok (Grok Build), antigravity (agy) or shell (a zsh command).
repeatsNoFalse for one time (scheduledAt required); true for cron repetition.
runLimitNoEnd repetition after this many scheduled attempts in total; null is unlimited. Manual runs and skipped slots do not count. Changing scheduling fields resets the count.
scheduleNoFive-field cron in the Mac's local time, such as "0 9 * * 1-5" for weekdays at 9:00.
scheduledAtNoISO 8601 date and time with Z or an offset. Without schedule, runs once. With a repeating schedule, this is its earliest start; null clears that bound.
timeLimitMinutesNoStop a run after this many minutes; null (the default) lets it take as long as it needs.
workingDirectoryYesThe project folder the routine runs in, an absolute path.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does disclose the non-obvious traits: the routine runs unattended on its schedule, approvals are bypassed, and the user is notified that an agent added it. What is missing is failure behavior (e.g. an id collision on create) and any permission or prerequisite context.

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?

A single front-loaded sentence covering creation, behavior, and required input shape with no filler. It is dense to the point of being a run-on, but every clause earns its place.

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 14-parameter create tool with no annotations and no output schema, the description covers the mode selection and the security-relevant behavior well, and the schema documents every parameter. The gaps are modest: no mention of what a failed create looks like or prerequisites such as the harness being available.

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 100%, so the baseline is 3, but the description adds cross-parameter meaning the schema never states: prompt-or-skill is the runnable payload, and scheduledAt versus schedule selects one-time versus repeating mode. Those relational constraints are genuinely useful beyond the per-field descriptions.

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?

Opens with a specific verb and resource ("Schedule a new routine in Rota") and immediately scopes it as unattended with approvals bypassed, which tells an agent what kind of creation this is. It lacks any explicit contrast to update_routine or the other routine siblings, so the agent must infer that this is the create path rather than the modify path.

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?

"Give a prompt or a skill, and either scheduledAt for one time or schedule for repetition" gives real guidance on the valid input combinations for invocation. There is no when-to-use vs when-not-to-use guidance and no alternative tool named, so usage is implied rather than framed.

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