Skip to main content
Glama
brkhrdt
by brkhrdt

run_command

Execute a command in a PTY session and wait for its completion using sentinel detection.

Instructions

Run a command in a PTY session and wait for completion. Uses sentinel-based detection to know when command finishes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYesThe command to run
timeoutNoTimeout in seconds to wait for command completion (default: 1800)
session_idYesThe session ID returned by start_session
Behavior3/5

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

With no annotations, the description partly covers behavior (waiting for completion, sentinel-based detection) but lacks details on side effects (e.g., consuming output), error handling, or timeout behavior. More transparency is needed for a safe PTY command tool.

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 short (two sentences) and front-loaded with key action and resource. However, it could be slightly more structured with a clear separation of purpose and usage.

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?

The description omits important context such as what the tool returns (e.g., command output, sentinel confirmation) or how to retrieve output. Given three parameters and complexity of PTY sessions, it is incomplete.

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?

All three parameters are described in the input schema (100% coverage), so the description adds no extra semantic value beyond what is already provided in the schema. Baseline score of 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?

The description clearly states 'Run a command in a PTY session and wait for completion', specifying the verb (run), resource (command in PTY session), and behavior. It distinguishes from sibling tools like send_keys, which sends keystrokes but doesn't wait for completion.

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?

The description mentions 'sentinel-based detection' but does not explicitly guide when to use this tool versus alternatives like send_keys or get_buffer. There is no 'when not to use' or differentiation from sibling tools.

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/brkhrdt/pty-mcp'

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