Skip to main content
Glama

Put a button that waits on a run's step

add_step_button

Puts one button on a step of a run that is going — the step named, or the step in hand — for the person to press on the step's card, the Lock Screen or the watch. It is one of three, in the written form how_to_write_a_routine describes: putAside (puts the step aside until a moment and lets the run go on: "followUp" for the step's own follow-up, the name of one of the person's Not now answers, or {"days": 2, "at": "10:00"} / {"hours": 3}), deadline (done by or begun by so long after the press: {"hours": 2} or {"at": "17:00", "kind": "startBy"}) or checkIn (a question asked once or every so often until it is answered: {"every": {"days": 3}, "question": "Has it arrived?"}, "about": "run" for the run). A "title" beside it is the words on the button. The button is this run's alone, and the person decides whether the routine keeps it. To put one on every run of a routine, change the routine instead.

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": {
      "run": "<run>",
      "button": "<button>"
    },
    "name": "add_step_button"
  }
}

Input Schema

NameRequiredDescriptionDefault
runYesThe run's id.
stepNoThe step's id, if not the step the run is on.
buttonYesOne button: {"putAside": …}, {"deadline": …} or {"checkIn": …}, with "title" beside it if the words on it should not be the app's own. JSON text is read too.

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. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-idempotent, non-destructive write; the description adds real context beyond them — the button is scoped to this single run, the person (not the caller) decides whether the routine keeps it, and the run must be in progress. It does not say what happens on repeated calls or after the person dismisses the button, leaving the idempotentHint=false consequence implicit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single dense run-on paragraph that mixes purpose, button-type grammar, scoping and retention policy together, so the key action is not cleanly front-loaded. Most sentences carry information, but the parenthetical examples make it hard to scan and the ordering buries the most important constraint.

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?

An output schema exists, so return values need no explanation, and the polymorphic button argument — the hard part of this tool — is documented thoroughly. Remaining gaps are minor: no note on failure modes for an invalid step id or a finished run, and no cross-reference to the sibling that removes or alters a button.

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 description coverage is 100%, so the schema already names the three keys and the optional run/step ids. The description goes further and supplies concrete value shapes for each button kind — 'followUp', a Not now answer name, {"days": 2, "at": "10:00"}, {"hours": 3}, {"at": "17:00", "kind": "startBy"}, {"every": {"days": 3}, "question": …}, "about": "run" — plus the meaning of "title", which the schema only gestures at.

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: it puts one button on a step of a running run, pressable from the step's card, Lock Screen or watch, and names the default step scope ('the step named, or the step in hand'). It also implicitly separates itself from routine-level editing ('To put one on every run of a routine, change the routine instead'), though it never names the sibling that does that.

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 states the tool is one of three button kinds and points at how_to_write_a_routine for the written form, and it gives a clear when-not: use routine-level change for buttons on every run. It lacks explicit exclusions such as whether a run must be in a particular state, or how it differs from put_off_step.

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.