Skip to main content
Glama

Manage Autopilot routines

manage_routine
Destructive

Create, schedule, pause, and run AI routines that trigger on new replies or weekday times using briefs the AI reads each run. Update, resume, delete, or start runs on demand.

Instructions

Autopilot: routines the user's own AI runs, each a brief plus when it runs (when new replies arrive, or on weekdays at a time).

  • list / get: routines with their latest runs, and setup: how each one runs and the exact prompt to give the AI.

  • create: name, brief, when ("replies" or "schedule" with cadence). It starts on the AI's own scheduler: setup.prompt and setup.steps are what the user needs to create the scheduled task. A "replies" routine needs Meerko to start it: the user connects a Claude routine or a webhook in the dashboard's Autopilot page (it holds a secret, so it isn't done through this tool).

  • update (name, brief, when, cadence), pause, resume, delete.

  • run_now: Meerko starts it through its Claude routine or webhook; on the AI's own scheduler it returns the prompt to run instead. The brief is what a later run reads, with no one to ask. Confirm the brief and schedule with the user before creating a routine, and confirm before deleting one.

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": {
      "action": "<action>"
    },
    "name": "manage_routine"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
whenNo
briefNoWhat the AI does on each run, e.g. 'Find 20 new leads matching my ICP, enrich them, and add the ones with verified emails to the Q4 sequence'
actionYes
cadenceNoRequired when `when` is schedule
routine_idNoFor every action except list and create

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, and the description earns credit by saying which actions destroy state (delete, with a confirm-first rule) and by disclosing the webhook/secret setup that cannot be done through this tool. It stops short of stating permissions, idempotency, or what pause/resume change operationally.

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?

The opening sentence defines the concept before any action bullets, and each bullet maps to one action with no filler. It is dense but front-loaded; the setup.prompt/setup.steps aside is slightly detailed for a definition, though it does serve a real purpose for create.

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?

With six parameters, a nested cadence object, and no output schema, the description covers the important return shapes itself: list/get return routines with latest runs, create returns setup.prompt and setup.steps, run_now returns a prompt on the AI's own scheduler. What is missing is any mention of pagination, limits, or error conditions for routine_id lookups.

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?

At 50% schema coverage the description has to carry weight, and it does: `brief` is explained as what a later run reads "with no one to ask," `when` is disambiguated as "replies" versus "schedule with cadence," and cadence is tied to update. `name` and the cadence sub-fields (days/time/timezone) are left entirely to 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 description names the resource precisely ("routines the user's own AI runs, each a brief plus when it runs") and then enumerates every supported verb: list/get, create, update, pause, resume, delete, run_now. An agent can tell this is the CRUD-plus-lifecycle surface for Autopilot routines 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 gives per-action context ("update (name, brief, when, cadence)", run_now behaves differently depending on whose scheduler runs the routine) plus two explicit preconditions: confirm the brief and schedule before creating, confirm before deleting. The one gap is that the sibling start_routine_run is never mentioned, so routing between run_now and that tool is left to inference.

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