Skip to main content
Glama

check_activity

Scan iTerm2 sessions to identify active versus idle panes, with foreground processes, recent output, and activity assessments so you can choose sessions to watch or place in a grid.

Instructions

Scan all iTerm2 sessions and report which are active vs idle. Returns each session's foreground process, last few lines of output, and an idle/active assessment. Use this to discover which sessions are worth watching or placing in a layout grid.

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

Input Schema

NameRequiredDescriptionDefault
tail_linesNoNumber of trailing output lines to include per session (default: 5)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/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 burden, and it does disclose scope ('all sessions', no filtering) and return contents. However, it never explicitly states that the tool is read-only and side-effect free, nor does it mention cost or latency of scanning every session, leaving the mutation profile implicit in the word 'Scan'.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the core action and followed by return contents and a usage hint. No redundant phrasing; only the middle sentence could be compressed slightly.

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?

For a single-optional-parameter read tool with no output schema and no annotations, the description supplies the essential return shape inline and a use case. The main missing element is an explicit statement of read-only behavior.

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 100% and tail_lines is already documented in the schema, so the baseline applies. The phrase 'last few lines of output' only loosely gestures at the parameter without restating its meaning or default, adding nothing beyond the schema.

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 opens with a specific verb and resource: 'Scan all iTerm2 sessions and report which are active vs idle.' It also states exactly what is returned (foreground process, trailing output, activity assessment). It doesn't explicitly name a sibling like list_sessions to contrast with, so differentiation must be inferred from the activity focus.

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 sessions are worth watching or placing in a layout grid' gives a concrete use case that situates the tool in a workflow. There is no explicit when-not guidance or named alternative, so it stops short of full routing guidance.

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