Skip to main content
Glama

Plan a run for later

plan_run

Plans a run of one of the person's routines for a moment to come — "Morning tomorrow at seven". It appears on the phone as a Planned run and begins at that moment; the person can move or delete it there. Give the moment with its time zone offset, as ISO 8601. Takes name and values as start_run does, and the answer carries run.

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>",
      "at": "<at>"
    },
    "name": "plan_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
atYesWhen it begins, e.g. 2026-10-15T07:00:00-04:00.
nameNoWhat this run is called, if not the routine's name.
valuesNoValues the run starts with, by key.
routineYesThe routine's name or id.
ask_firstNoWait for the person to say yes on the phone before it begins. Use it when they asked you to check with them first.

Output Schema

NameRequiredDescriptionDefault
runNoThe run it started, planned or found, where there is one: what set_value, next_step and the rest take.
urlNoFor publish_routine, once the person has published it: routinerun.com/c/<code>, the address to share.
codeNoFor publish_routine, once published: the eight-character code, which publish_routine takes again to replace it.
statusYesWhat the phone did with it, in one word; the sentence beside it says what that means.
commandYesThe command's id, which command_status takes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / code
      Added value: +{
      +  "description": "For publish_routine, once published: the eight-character code, which publish_routine takes again to replace it.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / url
      Added value: +{
      +  "description": "For publish_routine, once the person has published it: routinerun.com/c/<code>, the address to share.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "command": {
      +      "description": "The command's id, which command_status takes.",
      +      "type": "string"
      +    },
      +    "run": {
      +      "description": "The run it started, planned or found, where there is one: what set_value, next_step and the rest take.",
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "What the phone did with it, in one word; the sentence beside it says what that means.",
      +      "enum": [
      +        "done",
      +        "saved",
      +        "proposed",
      +        "refused",
      +        "tooOld",
      +        "runHadMoved",
      +        "alreadyDone",
      +        "notFound",
      +        "asked",
      +        "alreadyGoing",
      +        "waiting",
      +        "daySet",
      +        "linked",
      +        "wrongKind"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "command",
      +    "status"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations, the description discloses observable behavior: the run appears on the phone as a Planned run, begins at that moment, and the person can move or delete it there. That is meaningful side-effect context the annotations do not convey. It does not address duplicate planning or what happens if the moment is in the past, so it is not exhaustive.

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 description is front-loaded with the core purpose, then behavior, then the moment format, then parameters. Each sentence earns its place, though the final sentence compresses both parameter notes and return information into one dense clause.

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 annotations, full schema coverage, and an output schema, the definition supplies the behavioral context an agent needs to call it correctly: what is created, where the person sees it, and the required time format. Edge behavior such as scheduling into the past or conflicting with an existing planned run is left unstated.

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?

With 100% schema coverage the baseline is 3, but the description adds genuine meaning by requiring the moment to carry a time zone offset as ISO 8601 and by cross-referencing that `name` and `values` behave as in start_run. It also notes the answer carries `run`, though the output schema already covers returns.

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 uses a specific verb and resource ("Plans a run of one of the person's routines") and scopes it to "a moment to come," which inherently separates it from start_run, which the description also explicitly names. An agent can tell immediately that this schedules a future run rather than launching one now.

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 through the "Morning tomorrow at seven" example and the framing around a future moment, and the schema-level ask_first note covers the confirm-first case. The description stops short of an explicit when-not rule (e.g., if the moment is now, use start_run), so it falls just short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.