Skip to main content
Glama

update_routine

Modify an existing scheduled routine by changing only the fields you provide, such as schedule, prompt, model, or enabled state.

Instructions

Change a routine; only the fields given change.

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>"
    },
    "name": "update_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.
workingDirectoryNoThe project folder the routine runs in, an absolute path.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden, and it does disclose one important behavioral trait: fields not supplied are left untouched (merge/patch semantics rather than replace). It says nothing about permissions, what happens on invalid cron or scheduledAt values, or side effects such as the runLimit counter reset noted only in the schema.

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?

One short sentence, front-loaded with the verb and resource, with the update semantics immediately following; nothing is redundant. It is arguably too terse for a 14-parameter mutation tool, but that gap belongs to completeness rather than wording.

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

Completeness2/5

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

This is a 14-parameter mutation tool with no annotations and no output schema, and the description addresses none of the surrounding concerns: no mention of the return value, error behavior, or interaction between scheduling fields and the run counter. For this complexity and schema/annotation richness, one sentence leaves substantial gaps.

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 every one of the 14 parameters is already documented in the schema, establishing a baseline of 3. The description's patch-semantics clause adds a little meaning about how the parameters combine, but no parameter-level detail beyond the schema.

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?

The description gives a specific verb and resource ("Change a routine") and clarifies the update is partial. It does not distinguish itself from siblings, notably set_routine_enabled, which overlaps with the `enabled` field, so an agent must infer the boundary from names alone.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance and no named alternative. The phrase "only the fields given change" implies a partial-update contract versus create_routine, but the agent gets no help choosing between this tool and set_routine_enabled for toggling, nor any prerequisite such as the routine needing to exist.

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