Skip to main content
Glama

Resize terminal

terminal_resize
Idempotent

Resize a terminal session by setting columns and/or rows; omit one to keep its current value, and update PTY plus emulator so programs get SIGWINCH.

Instructions

Change the terminal size. Both cols and rows are optional; omitting one preserves the current value. Resizes both the PTY and the emulator (so programs running inside see the change via SIGWINCH).

Input Schema

NameRequiredDescriptionDefault
colsNoNew column count (1..1000). Omit to keep current cols.
rowsNoNew row count (1..1000). Omit to keep current rows.
sessionIdYesNumeric id of the session to target. Get one by calling terminal_create. Use terminal_list to enumerate currently-known ids.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare it is a non-read-only, idempotent, non-destructive operation. The description adds meaningful behavior beyond that: it resizes both the PTY and the emulator and propagates change via SIGWINCH to running programs, which an agent cannot infer from annotations alone.

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 tight sentences with no filler. The core action is front-loaded, and the parameter behavior and propagation detail follow in service of the primary statement.

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?

No output schema exists, but for a resize tool the critical behavioral facts (partial update semantics, dual PTY/emulator resize, SIGWINCH propagation) are covered. Minor gaps remain around error conditions for invalid sessions or out-of-range sizes, though the schema bounds cols/rows.

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%, so the schema already documents cols, rows, and sessionId fully. The description restates the omit-to-preserve semantics already present in the schema, adding no new syntax or format detail. Baseline 3 applies.

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 ('Change the terminal size'), which an agent can immediately distinguish from siblings like terminal_read or terminal_type. The scope is precise and unambiguous.

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?

Explains the partial-update behavior (omitting cols/rows preserves current values), which is useful contextual guidance. However, it gives no when-to-use or when-not-to-use signals relative to alternatives such as terminal_reset or terminal_create.

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