Skip to main content
Glama

cmd_list

Read-onlyIdempotent

Lists recent command runs, newest first, so you can find a lost run ID, check what is still running, or see whether a request was approved or denied.

Instructions

Lists the most recent command runs, newest first. Each row: run number, status (waiting for approval, queued, running, succeeded, failed, timed out, cancelled or denied), operation, workspace, the command line (cut at 90 characters) and how long ago it was requested. Reads only. WHEN TO USE: to find a run id you no longer have, to see what is still running before you start another build or app, or to check whether the owner approved or denied a request. Then cmd_output reads a run's output, cmd_wait waits for one that is still going and cmd_stop ends one. Not for output itself: rows carry no output.

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": "cmd_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
guideNotrue: put the commands guide first in the result. Use on your first commands call, or when told it changed.
limitNoOptional: how many runs to show (default 10, 1 to 30).
workspaceNoOptional: only runs of this workspace (name as shown in Waymark). Omit for runs of every workspace and system scripts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.2
    • changedInput schema / properties / limit / description
      Previous value: -"How many runs (default 10, at most 30)."New value: +"Optional: how many runs to show (default 10, 1 to 30)."
    • changedInput schema / properties / workspace / description
      Previous value: -"Optional workspace name."New value: +"Optional: only runs of this workspace (name as shown in Waymark). Omit for runs of every workspace and system scripts."
  2. First observedv0.2.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and idempotentHint; the description adds that rows are newest-first, enumerates all eight status values, discloses that the command line is truncated at 90 characters, and states rows carry no output at all. The truncation and no-output facts are behavior an agent cannot infer from structured fields and would otherwise mis-assume.

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?

Purpose and ordering are front-loaded, the row enumeration earns its space because there is no output schema, and the use/avoid section is one tight paragraph with no filler. Nothing here is redundant with a structured field.

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?

No output schema exists, so the description compensates by describing each returned field and the truncation rule. Combined with the explicit exclusions and handoffs to cmd_output, cmd_wait and cmd_stop, an agent has everything needed to call it correctly and route results afterward.

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 description coverage is 100%, so limit's range and workspace's meaning are already documented, and the description adds no format or usage nuance for any of the three parameters. With the schema doing all the parameter work, a baseline 3 is appropriate rather than higher.

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 ('Lists the most recent command runs') plus the ordering ('newest first') and the row shape, so the agent knows exactly what comes back. It also draws a hard boundary against the sibling that could be confused with it: 'Not for output itself: rows carry no output.'

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?

The WHEN TO USE block names three concrete situations (recovering a lost run id, checking what is still running before starting a build, verifying approval/denial). It then routes onward to the correct alternatives with their conditions: cmd_output for output, cmd_wait for still-running work, cmd_stop for ending a run.

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