Skip to main content
Glama

terminal

terminal

Run shell commands in fresh or reusable interactive PTY sessions; read or wait for output, send input, interrupt, resize, and manage session lifecycle.

Instructions

exec runs a command directly in a fresh noninteractive shell; cwd and shell are optional. Long commands return terminalId for read/wait/interrupt. create/run provides a reusable interactive PTY. maxOutputChars budgets each response; head pages with cursor, tail reports skipped text. Results are compact by default; detail includes terminal metadata.

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.10

TDQS

A3.5/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. It discloses meaningful behavior beyond the schema: fresh noninteractive execution, reusable PTY sessions, terminalId handoff, per-response output budgeting, paging, and compact-by-default results. However, it says nothing about destructive actions like close or delete, interrupt/write semantics, or lifecycle side effects.

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?

The description is a compact paragraph of semicolon-separated clauses, front-loaded with the primary exec behavior and its alternative. It wastes little space, though the dense phrasing compresses several distinct concepts into one block.

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?

This is a complex multi-action tool with no annotations and no output schema, yet the description covers only part of the action set. It explains exec, create, run, read, wait, interrupt, and output paging, but leaves list, write, resize, rename, close, delete, and the required reason field unexplained, which is a material gap for correct invocation.

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 maxOutputChars, outputMode, detail, yieldMs, and timeoutMs in detail. The description adds some meaning, such as cwd and shell being optional for exec, but much of its parameter text repeats schema wording rather than clarifying cursors, terminalId reuse, commandId, raw, or dimensions.

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 specific verbs and resources: "exec runs a command directly in a fresh noninteractive shell" and "create/run provides a reusable interactive PTY." That clearly distinguishes the two main execution modes, but it omits actions such as list, write, resize, rename, close, and delete, so the full capability surface is not stated.

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?

It gives useful routing guidance: use exec for a fresh noninteractive shell, create/run for a reusable interactive PTY, and read/wait/interrupt when a long command returns a terminalId. It does not explain when to use the unmentioned lifecycle actions or when not to use this tool.

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