Skip to main content
Glama

list_sessions

Discover which terminal is running which agent by listing all iTerm2 windows, tabs, and panes with session IDs, names, and working directories.

Instructions

List all iTerm2 windows, tabs, and panes with their session IDs, names, and working directories. Use this to discover which terminal is running which agent.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it does convey the key behavior: this is a non-mutating enumeration that returns session identity, names, and working directories. It omits finer traits such as ordering, whether closed or detached sessions appear, and any permission requirements, which keeps it from a 5.

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 sentences with no filler, and the enumeration of returned fields comes before the usage hint. Every clause 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 output schema, the description has to describe return values itself and does so adequately (session IDs, names, working directories). For a zero-parameter listing tool, only minor details like ordering or scope of enumeration are left uncovered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so the baseline is 4 and there is no parameter syntax to explain. The description instead spends its words on what the result entries contain, which is the right use of space here.

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 specific verb and resource ('List all iTerm2 windows, tabs, and panes') and itemizes what each entry carries (session IDs, names, working directories), which is enough for an agent to tell it apart from the action-oriented siblings such as create_tab, split_pane, and read_output. It stops short of explicitly naming a sibling it is not, so it lands just below the top mark.

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

Usage Guidelines4/5

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

'Use this to discover which terminal is running which agent' supplies a concrete trigger for calling the tool. There are no exclusions or named alternatives, but for a discovery/listing tool in this sibling set the intended moment of use is unambiguous.

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