Skip to main content
Glama

Show hierarchy

cmux_tree

Prints the window > workspace > pane > surface tree so agents can inspect terminal layout and target panes or workspaces.

Instructions

Print the window > workspace > pane > surface tree.

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

Input Schema

NameRequiredDescriptionDefault
allNoInclude all windows.
workspaceNoWorkspace ref like "workspace:26". Defaults to the caller's workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.13

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the whole burden. "Print" weakly implies a non-mutating read, but the description never confirms it, does not state whether the output is truncated for large sessions, and says nothing about how refs from the tree feed into other tools.

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?

A single front-loaded sentence with no filler and no hedging. It is arguably too compressed given the missing usage context, but nothing in the sentence is wasted.

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

Completeness3/5

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

The tool is simple (two optional params, no output schema, no annotations), so the description does not need to explain return values. Still, for a discovery-oriented tool it omits the one thing an agent needs beyond the schema: how the printed tree is meant to be consumed.

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% and both parameters are optional, with the schema explaining "all" (include all windows) and "workspace" (a ref like "workspace:26" defaulting to the caller's workspace). The description adds nothing on top, which is the baseline case rather than a failure.

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?

"Print the window > workspace > pane > surface tree" gives a concrete verb (print) and a concrete resource (the four-level hierarchy), which is enough to distinguish it from flat listing tools like cmux_list or cmux_list_panels. It stops short of explicitly naming an alternative, but the purpose itself is unambiguous.

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

Usage Guidelines2/5

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

There is no guidance on when to reach for this instead of cmux_list or cmux_list_panels, no mention of what the hierarchy is useful for (orientation, picking a pane ref), and no prerequisites. The agent must infer the use case entirely from the tool name and the shape of the output.

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