Skip to main content
Glama
mcp-interactive-repl

mcp-interactive-repl

by zachsnow

repl_read

Read the current output buffer of a running REPL session by session ID without blocking, so you can check progress and capture results while it continues.

Instructions

Non-blocking read of current output buffer

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>"
    },
    "name": "repl_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdYesSession ID from repl_start

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose one genuinely useful behavioral trait, that the read is non-blocking, which tells the agent it can poll without hanging; however, it doesn't say whether reading drains or consumes the buffer, what happens on an invalid/ended session, or whether output can be partial.

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?

One short sentence with zero filler, and the key qualifier ("non-blocking") is front-loaded. Nothing is wasted or buried.

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?

With no output schema and no annotations, the description is the only source for return-value semantics, yet it never says what the buffer contents look like or whether reads are destructive. For a one-parameter polling tool this is workable but leaves a real gap an agent would want closed.

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?

There is a single required parameter with 100% schema coverage, and the schema already explains that sessionId comes from repl_start. The description adds no further meaning about the parameter, which is acceptable at full coverage but earns only the baseline.

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 pairs the specific verb "read" with the specific resource "current output buffer," so the agent can distinguish this tool from sibling repl_send, repl_kill, repl_list, and repl_start without opening schemas. It stops short of a 5 because the boundary between reading and sending output isn't otherwise spelled out.

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?

Usage is only implied: the agent can infer this tool is for polling output from an already-running REPL session, but the description never says when to call it instead of repl_send or what to do if no output exists. No prerequisites (such as needing an active session from repl_start) are stated.

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