Skip to main content
Glama
Bridge Commander
by PaPasha215

interact_with_process

Destructive

Send input to a running process session and return its new output, enabling interactive command execution and response capture.

Instructions

Send a line of input to a session started by start_process and return the new output.

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": {
      "pid": "<pid>",
      "input": "<input>"
    },
    "name": "interact_with_process"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidYes
inputYes
timeout_msNoMilliseconds to wait for output.

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?

Annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is carried structurally. The description adds that output is returned after the write, which is useful behavior. However, for a destructive, open-world, non-idempotent tool it says nothing about what makes it destructive, whether input is executed as a command, or what happens on timeout.

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 no filler that states the write and the return together. It is lean to the point of omitting the timeout parameter, but nothing is wasted.

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?

For a 3-parameter mutation tool with no output schema and partial schema coverage, the definition covers the core contract (send line, get new output) but not the risky parts: destructive effects, blocking/timeout semantics, or failure modes. Adequate minimum, not 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 only 33%, with just timeout_ms documented in the schema itself. The description partially compensates by framing input as a 'line' (implying newline-terminated, single-line semantics) and implying pid identifies a start_process session, but it leaves timeout behavior and the exact pid format unstated.

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?

Specific verb and resource: sends a line of input to a session and returns new output. It explicitly ties itself to start_process, so an agent knows the session must pre-exist. It does not distinguish itself from read_process_output, which also returns session output, but the write/input framing is clear.

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?

Implies usage by naming start_process as the prerequisite, which gives the agent a sequencing cue. There is no explicit when-not guidance, no mention of how this differs from read_process_output, and no warning about calling it on an interactive vs. finished process.

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