Skip to main content
Glama

rename_tab

Change tab titles in terminal multiplexer workspaces to organize agent sessions and improve workflow clarity.

Instructions

Rename a surface tab

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
surfaceYesTarget surface ref
titleYesNew tab title
workspaceNoTarget workspace ref
preserve_prefixNoOnly replace the task suffix, keeping launcher prefix

Implementation Reference

  • The handler function for the 'rename_tab' tool in src/server.ts. It processes the arguments, performs title transformation if needed, and calls client.renameTab.
    async (args) => {
      try {
        let finalTitle = args.title;
        if (args.preserve_prefix) {
          const surfaces = await client.listPaneSurfaces({
            workspace: args.workspace,
          });
          const surface = surfaces.surfaces.find((s) => s.ref === args.surface);
          const currentTitle = surface?.title ?? "";
          finalTitle = replaceTaskSuffix(currentTitle, args.title);
        }
        await client.renameTab(args.surface, finalTitle, {
          workspace: args.workspace,
        });
        return ok({
          surface: args.surface,
          title: finalTitle,
          applied: "rename_tab",
        });
      } catch (e) {
        return err(e);
  • Registration and schema definition for the 'rename_tab' tool.
    server.tool(
      "rename_tab",
      "Rename a surface tab",
      {
        surface: z.string().describe("Target surface ref"),
        title: z.string().describe("New tab title"),
        workspace: z.string().optional().describe("Target workspace ref"),
        preserve_prefix: z
          .boolean()
          .optional()
          .default(false)
          .describe("Only replace the task suffix, keeping launcher prefix"),
Behavior2/5

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

No annotations are provided, so the description carries full burden for behavioral disclosure. 'Rename a surface tab' implies a mutation operation but doesn't specify permissions needed, whether the change is reversible, error conditions, or what happens to the surface state during renaming. For a mutation tool with zero annotation coverage, this is inadequate.

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?

The description is a single, efficient sentence with zero wasted words. It's front-loaded with the core action and immediately communicates the tool's purpose without unnecessary elaboration.

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

Completeness2/5

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

For a mutation tool with no annotations and no output schema, the description is insufficiently complete. It doesn't explain what 'rename' entails operationally, what happens on success/failure, or how this interacts with other surface operations. The 100% schema coverage helps with parameters, but the behavioral context is missing.

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 the schema already documents all four parameters thoroughly. The description adds no additional parameter information beyond what's in the schema. With complete schema coverage, the baseline score of 3 is appropriate as the description doesn't compensate but also doesn't need to.

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 clearly states the action ('Rename') and target resource ('a surface tab'), making the purpose immediately understandable. It doesn't explicitly differentiate from sibling tools like 'browser_surface' or 'close_surface', but the verb 'rename' is specific enough to distinguish it from other surface-related operations.

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?

The description provides no guidance on when to use this tool versus alternatives. There's no mention of prerequisites, when renaming is appropriate, or what happens if the tab doesn't exist. With multiple surface-related tools available, this lack of contextual guidance is a significant gap.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/EtanHey/cmuxlayer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server