Skip to main content
Glama

create_window

Opens a new iTerm2 window only when a task needs a separate workspace, accepting an optional working directory, command, and profile. Returns the new session ID.

Instructions

Create a new iTerm2 window. Prefer create_tab over this — new windows clutter the workspace. Only use create_window when the task genuinely needs a separate window. Returns the session ID of the new session.

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

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking directory to cd into after creation
commandNoCommand to execute in the new window
profileNoiTerm2 profile name to use (omit for default profile)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the return value (session ID of the new session), which is genuine value, but it says nothing about whether the window takes focus, whether the command runs synchronously, or what happens if cwd or profile is invalid. For a tool that mutates the user's workspace, that is a meaningful gap.

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?

Three short sentences, no filler, and the highest-value information (what it does, use create_tab instead, return value) is front-loaded. Every sentence earns its place.

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

Completeness4/5

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

With no annotations and no output schema, the description compensates well by naming the return value and the preferred alternative, and the schema fully documents the three optional parameters. Only minor behavioral details (focus stealing, error handling on bad cwd/profile) are missing for a workspace-mutating tool.

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 cwd, command, and profile are already documented in the input schema; the description adds no syntactic or behavioral detail beyond it. Baseline 3 applies when the schema does the heavy lifting.

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: "Create a new iTerm2 window." It also names the sibling it is not (create_tab) and states the concrete return value (session ID), so an agent can distinguish it from split_pane and create_tab without reading any schema.

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?

Explicitly says to prefer create_tab and gives the exclusion condition: "Only use create_window when the task genuinely needs a separate window." That is a named alternative plus a when-not rule, not an inference.

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