Skip to main content
Glama

Rename a tab

cmux_rename_tab

Set or change a terminal tab title in cmux by tab ref or by a surface inside it; defaults to the current tab.

Instructions

Set a tab's title (the pane's tab label). Target the tab by ref, or by a surface inside it; defaults to the current tab.

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": {
      "title": "<title>"
    },
    "name": "cmux_rename_tab"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabNoTab ref like "tab:11".
titleYes
surfaceNoSurface ref like "surface:40". Defaults to the current pane.
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

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses the default target and the surface-to-containing-tab resolution rule, but says nothing about overwrite semantics for an existing title, permission/auth requirements, or what happens on an invalid ref.

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?

Two short sentences, zero filler: the core action and resource come first, the targeting rules second. Every clause adds information about behavior or targeting.

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?

For a simple mutation tool with no output schema and no annotations, an agent still lacks details on error behavior, whether an existing title is replaced silently, and how the `workspace` parameter interacts with the other targeting options. Adequate for a routine rename but not fully self-contained.

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 coverage is 75%, so the baseline is 3. The description usefully explains that `tab` and `surface` are alternative targeting paths and that `tab` defaults to the current tab, but it omits the undocumented `title` semantics beyond "label" and says nothing about `workspace`.

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?

"Set a tab's title" gives a specific verb and resource, and the parenthetical "(the pane's tab label)" disambiguates what a "tab" is in this domain. The resource name alone separates it from cmux_rename_workspace, though the description never states that contrast explicitly.

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

Usage Guidelines3/5

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

It explains how to target the tab (by tab ref, or indirectly by a surface inside it) and that the current tab is the fallback, which is genuine usage context. It does not say when to prefer this over cmux_rename_workspace or when renaming is inappropriate, so guidance is implied rather than explicit.

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