Skip to main content
Glama
mcp-interactive-repl

mcp-interactive-repl

by zachsnow

repl_send

Sends input to an active REPL session and waits for the next prompt, letting MCP clients drive interactive command-line programs step by step.

Instructions

Send input to a REPL session and wait for the next prompt

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": {
      "sessionId": "<sessionId>",
      "input": "<input>"
    },
    "name": "repl_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesInput to send (newline appended automatically)
timeoutNoMax milliseconds to wait for prompt (default: 30000)
sessionIdYesSession ID from repl_start

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose the important blocking trait that the call waits for the next prompt. However, it never says what happens if the timeout elapses (error vs. partial output), whether the returned data is the REPL output since the last prompt, or what occurs if the session is dead or busy.

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?

A single front-loaded sentence naming the action, target, and its blocking behavior with no filler. Nothing in it is redundant or misplaced.

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?

For a three-parameter tool with full schema coverage and no output schema, the description covers the essential send-and-block loop. The main residual gap is timeout/failure behavior and the shape of what comes back, which keeps it from being complete.

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 baseline is 3: the schema already documents input (newline appended automatically), timeout (default 30000 ms), and sessionId provenance. The description adds the synchronous-wait framing but no extra parameter semantics beyond what the schema provides.

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 states a specific verb ('Send input') and resource ('a REPL session') plus the key trailing behavior ('wait for the next prompt'), which distinguishes it from repl_read or repl_list without needing their schemas. It stops short of explicitly naming how it differs from those siblings, so it is clear but not fully differentiated.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance: nothing states that a session must already exist via repl_start, nor when to prefer this over repl_read for retrieving output. Usage is only inferable from the verb and the schema note 'Session ID from repl_start'.

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

Deploy Server

Other Tools