Skip to main content
Glama
mcp-interactive-repl

mcp-interactive-repl

by zachsnow

repl_start

Starts an interactive REPL process with a specified command and regex prompt pattern, enabling clients to begin and interact with command-line sessions.

Instructions

Start an interactive REPL process with prompt detection

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": {
      "command": "<command>",
      "prompt": "<prompt>"
    },
    "name": "repl_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking directory
envNoAdditional environment variables
argsNoCommand arguments
promptYesRegex pattern to detect prompt (e.g., '^>>> $')
commandYesCommand to run (e.g., 'python', 'node')
initialTimeoutNoMax milliseconds to wait for initial prompt (default: 30000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and falls short: it does not say that this spawns a long-lived OS process, that the session persists until repl_kill, what happens on prompt-detection timeout, or how the caller identifies the session afterward. 'Prompt detection' is useful context but is already implied by the required prompt parameter in the schema.

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?

A single front-loaded sentence with zero redundant wording. Its brevity is efficient, though the space saved is not used for any of the missing workflow or behavioral context.

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?

For a six-parameter process-spawning tool with a nested env object, no annotations, and no output schema, the description should explain what the caller gets back (a session handle is presumably required for the sibling tools) and the lifecycle of the process. Neither is covered, leaving a significant gap for a stateful, side-effecting tool.

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 description coverage is 100%, so all six parameters (command, args, cwd, env, prompt, initialTimeout) are already documented in the schema with examples and defaults. The description adds no meaning beyond that, so the baseline 3 applies.

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 gives a specific verb and resource: 'Start an interactive REPL process', with the added qualifier 'with prompt detection' that signals the defining mechanism. It is clearly distinguishable from siblings like repl_send or repl_read, which act on already-running REPLs, though it never names those siblings explicitly.

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 guidance on when to use this versus any alternative, no prerequisites, and no statement of the typical follow-up (e.g., that repl_send/repl_read operate on the started session). The agent must infer the whole workflow from the sibling names alone.

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