Skip to main content
Glama

open_agent

Launches a coding CLI agent in a new terminal tab without changing existing tabs or creating git worktrees.

Instructions

Open a new terminal tab running a coding CLI agent without altering existing tabs or creating git worktrees.

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": {
      "agent": "<agent>",
      "cwd": "<cwd>"
    },
    "name": "open_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdYesWorking directory for the new tab.
envNoOptional environment variables for the spawned tab.
argsNoAdditional CLI arguments passed through verbatim (model, flags, etc.).
agentYesCLI kind to launch: codex, claude, antigravity, opencode, grok, or custom.
labelNoHuman-readable tab title and addressing label (e.g. "codex-worker").
commandNoOptional binary override (required when agent is "custom").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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, and it does disclose two useful non-effects: existing tabs are untouched and no git worktree is created. However, it says nothing about permissions, async versus blocking launch, failure modes for an invalid cwd, or whether the agent starts immediately, which are the traits an agent most needs for a spawning tool.

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?

A single sentence with zero filler, and the core action is front-loaded before the negative scope clause. Nothing could be cut without losing information.

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 six-parameter tool with a nested env object, an enum, no annotations, and no output schema, one sentence is thin. It never explains what the caller gets back (a tab identifier or label usable with send_message/read_history) or how the new tab relates to sibling tools, which is exactly the gap the absent structured fields leave open.

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% across all six parameters, including the agent enum and the custom/command dependency, so the schema does the heavy lifting. The description adds no parameter-level meaning beyond it, making the baseline 3 correct.

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 gives a concrete verb and resource ("Open a new terminal tab running a coding CLI agent") and adds negative scope that separates it from worktree-creating behavior. It does not explicitly name a sibling such as list_agents or send_message to sharpen the distinction, so it lands just short of a 5.

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?

"without altering existing tabs or creating git worktrees" implies when this tool is appropriate versus alternatives, but it is a constraint rather than a routed recommendation. There is no explicit statement of when to prefer this over other agent-spawning approaches or what prerequisite state must exist, leaving usage partially inferred.

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