Skip to main content
Glama

e2b_send_stdin

Send text to the stdin of a running process in an E2B sandbox by providing its PID or tag.

Instructions

Send input to the stdin of a running process, selected by pid or tag. Note: field names are inferred from the related Start/SendSignal schemas; if this errors, check the E2B docs for the exact process.Process/SendInput request shape.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pidNo
tagNo
portNoOptional envd port; defaults to 49983
inputYesText to send to stdin
usernameNo
sandboxIdYesE2B sandbox ID
accessTokenNoOptional sandbox access token
Behavior3/5

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

No annotations are present, so the description carries the full burden. It discloses a schema-reliability caveat ('field names are inferred... check the E2B docs'), which is useful. However, it does not describe effects on the process, whether a newline is appended, what happens if the process is not found, or success/error behavior.

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 core functionality is front-loaded in a single concise sentence, with a helpful caveat appended as a second sentence. No wasted words, though the caveat could be slightly shorter.

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 7-parameter tool with no annotations, no output schema, and a schema-reliability warning, the description is thin. It lacks guidance on how the tool behaves on success/failure, how to choose pid vs tag, and what the response looks like. The caveat helps, but the overall picture 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?

Schema description coverage is 57%, so the schema provides some parameter descriptions (port, input, sandboxId, accessToken). The description adds semantic context that pid and tag are alternative selectors, but does not clarify their mutual exclusivity or the roles of username/accessToken. Overall it adds some value but does not compensate for the undocumented parameters.

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 the verb ('send'), the resource ('stdin of a running process'), and the selection mechanism ('by pid or tag'). This is specific enough to distinguish it from siblings like e2b_send_signal and e2b_close_stdin without needing to inspect their schemas.

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?

It implies the tool is for interacting with running processes by pid or tag, but does not explicitly state when to use it over alternatives such as e2b_close_stdin for EOF or e2b_send_signal for signals. No conditions or exclusions are provided, leaving the agent to infer the right context.

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/contributory/e2b-mcp-server'

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