Skip to main content
Glama

List going runs

list_runs
Read-onlyIdempotent

Lists the runs going now, planned ones included: each with its id, name, routine, status, how many steps, and the step it is on as stepNumber, step and stepID — the id next_step and put_off_step take as expectsStep. Use it before moving a run, and before start_run to see whether the routine is already going. A run that has finished or been stopped is not listed; get_run reads one by its id. Read from the phone, which has to be reachable.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_runs"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
runsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "runs": {
      +      "items": {
      +        "properties": {
      +          "id": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "planned": {
      +            "description": "Planned for later and not begun.",
      +            "type": "boolean"
      +          },
      +          "routineID": {
      +            "type": "string"
      +          },
      +          "startedAt": {
      +            "type": "string"
      +          },
      +          "status": {
      +            "description": "The run's status, by its id: running and paused are the app's own, and a status the person made has one of its own.",
      +            "type": "string"
      +          },
      +          "step": {
      +            "description": "The step in hand.",
      +            "type": "string"
      +          },
      +          "stepID": {
      +            "description": "The step in hand's id: what next_step and put_off_step take as expectsStep.",
      +            "type": "string"
      +          },
      +          "stepNumber": {
      +            "description": "Which step it is on, counting from one.",
      +            "type": "integer"
      +          },
      +          "steps": {
      +            "description": "How many steps it has.",
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "name"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "runs"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover the safe-read profile (readOnly, idempotent, non-destructive), and the description adds real operational context beyond them: which runs appear, which do not, and the precondition that it reads from the phone, which must be reachable. The enumeration of returned fields is useful for mapping but partially overlaps the output schema, keeping it short of a 5.

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?

Purpose and inclusion scope are front-loaded, and the alternative routing comes last, which is good ordering. The middle clause listing id, name, routine, status, step count and three step fields is dense and largely duplicates the output schema, so a sentence does not fully earn its place.

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

Completeness5/5

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

For a zero-parameter read tool with an output schema, the description covers everything an agent needs: what is listed, what is excluded, where to go for a single run, and the environment prerequisite (phone reachable). Nothing required for correct invocation is missing.

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?

The tool takes no parameters, so the schema baseline is 4. The description does clarify that the returned stepID is the value next_step and put_off_step accept as expectsStep, which is useful cross-tool meaning even though it describes output rather than input.

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?

States a specific verb and resource with an explicit scope: runs 'going now, planned ones included'. It also draws the boundary against the sibling get_run ('a run that has finished or been stopped is not listed; get_run reads one by its id'), so an agent can pick between them without opening either schema.

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

Usage Guidelines5/5

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

Gives concrete when-to-use conditions: before moving a run (next_step/put_off_step) and before start_run to check whether the routine is already going. It also gives the exclusion case (finished/stopped runs) and routes that case to get_run.

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.