Skip to main content
Glama

sendTerminalCommand

Destructive

Send text or commands to a VS Code terminal. Use getTerminalOutput to verify execution results.

Instructions

Send text/command to VS Code terminal. Fire-and-forget; use getTerminalOutput to check results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText or command to send to the terminal
nameNoTerminal name to send to
indexNoTerminal index (0-based) from listTerminals
addNewlineNoAppend newline to execute as command (default: true)
isCommandNoFalse for short stdin responses to prompts (max 512 chars, no shell metacharacters).
Behavior4/5

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

Beyond annotations (destructiveHint, openWorldHint), description adds fire-and-forget behavior and need to check results separately. Good context without contradictions.

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 concise sentences with key action and usage pattern front-loaded. No wasted words.

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?

Covers core behavior and result retrieval. Could briefly mention error handling for invalid terminals, but not essential for a fire-and-forget tool. Good overall.

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?

Input schema covers all parameters with descriptions (100%). Description does not add additional meaning beyond schema, so baseline 3 is appropriate.

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?

Clear verb 'Send' with resource 'VS Code terminal'. Explicitly states fire-and-forget nature and distinguishes from sibling getTerminalOutput for result retrieval.

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

Usage Guidelines5/5

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

Provides explicit guidance: use for sending commands without waiting for output; use getTerminalOutput to check results. Directs to appropriate alternative.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Oolab-labs/patchwork-os'

If you have feedback or need assistance with the MCP directory API, please join our Discord server