Skip to main content
Glama

Run a routine

run_routine

Start a person's routine now by name or id. It runs like a scheduled run, with results delivered in Casama and as a notification; pass request_id to prevent duplicate starts on retry.

Instructions

Start one of the person's routines now, by name or id. It runs like a scheduled run; the result arrives in Casama and as a notification. Pass request_id so a retry within a minute doesn't start it twice.

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": {
      "routine": "<routine>"
    },
    "name": "run_routine"
  }
}

Input Schema

NameRequiredDescriptionDefault
botNoThe routine's bot, when names repeat
routineYesRoutine name or id
workspaceNo
request_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.1

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations it discloses the crucial asynchronous behavior — the call does not return the result inline, output surfaces in Casama and as a notification — and it explains the retry-deduplication window tied to request_id. It also clarifies a potentially confusing point: idempotentHint=false is offset by a one-minute request_id guard, so retries are only safe when that key is supplied.

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 short sentences, front-loaded with the action and key, then the result-delivery note, then the retry caveat. Nothing is redundant with the title or 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 a non-idempotent, open-world mutation with no output schema, the description supplies the missing return-behavior and retry information an agent needs. The only remaining hole is the undocumented workspace parameter and any permission prerequisites for triggering a routine.

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 coverage is 50% (only routine and bot are documented in the schema). The description compensates well for request_id by explaining its dedup purpose, and routine's name-or-id form is restated, but workspace is defined in neither place, leaving one required piece of routing context unexplained.

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 gives a specific verb and resource ("Start one of the person's routines now") plus the lookup key ("by name or id"), which immediately separates it from list_routines (enumeration) and get_run (retrieval of an existing run). An agent knows exactly what this call does 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?

Usage context is clear: this is the immediate-trigger path, and the phrase "runs like a scheduled run" frames the semantics. It does not name an alternative or state when not to call it (e.g. to inspect a prior run use get_run), so it falls short of the explicit routing bar.

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