Skip to main content
Glama

terminal_type

Type literal text into a spawned terminal session to automate CLI input; use terminal_send_key for Enter, Ctrl-C, and other special keys.

Instructions

Type text into the terminal. Characters are sent literally (no key name interpretation). Use terminal_send_key for special keys like Enter or Ctrl-C.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "session_id": "<session_id>",
      "text": "<text>"
    },
    "name": "terminal_type"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe text to type into the terminal
delay_msNoDelay in ms after typing to let the application process input (optional)
session_idYesThe session ID returned by terminal_spawn

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/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 load. It usefully discloses that input is sent literally with no key-name interpretation, but says nothing about whether the call echoes output, whether the session must be alive, or what happens on an invalid session_id beyond the schema's reference to terminal_spawn.

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, front-loaded with the core behavior, then the literalness caveat, then the sibling handoff. Nothing is padded and no sentence restates the tool name.

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

Completeness3/5

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

For a simple terminal-input tool with a fully documented three-parameter schema and no output schema, this is close to sufficient. The remaining gap is behavioral: with no annotations and no return-value description, an agent cannot tell whether the tool reports success, echoes the typed text, or fails silently.

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?

Schema coverage is 100%, so the baseline is 3. The description still adds real meaning: because characters are literal, a newline in text will not act as Enter, which changes how an agent should construct that parameter and pushes it above baseline.

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 concrete verb and resource ("Type text into the terminal") and immediately pins down the semantic, literal characters with no key-name interpretation. That detail also separates it cleanly from terminal_send_key, so an agent can pick between them without opening either schema.

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?

Explicitly names the alternative (terminal_send_key) and the condition that selects it (special keys like Enter or Ctrl-C), which is the decision an agent actually faces here. It does not cover other siblings such as terminal_assert or terminal_wait_for, but those serve different intents and the primary routing question is answered.

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