Skip to main content
Glama

e2b_resize_pty

Resize a running process's terminal dimensions (cols, rows) in an E2B sandbox, targeting by PID or tag to adjust PTY size for proper display.

Instructions

Resize the PTY of a running process (cols/rows), selected by pid or tag. Note: shape inferred from process.PTY.Size; verify against E2B docs (api-reference/process/update) if it errors.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pidNo
tagNo
colsYes
portNoOptional envd port; defaults to 49983
rowsYes
usernameNo
sandboxIdYesE2B sandbox ID
accessTokenNoOptional sandbox access token
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It states the core action and selection mechanism, but it does not disclose side effects, permissions, return behavior, or failure modes. The note about inferring the shape from process.PTY.Size and verifying docs signals uncertainty rather than providing behavioral clarity.

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 description is short and front-loaded, with the core operation stated first. The second sentence is a useful caveat but could be tighter; overall there is no filler or redundant repetition.

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?

Given 8 parameters, no output schema, no annotations, and related process-control siblings, the description is incomplete. It omits required sandboxId, selection constraints, return information, and error behavior. The 'verify docs' note is not a substitute for describing how the tool behaves.

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 low (38%), so the description must compensate. It adds meaning by explaining that pid/tag select the process and cols/rows are the dimensions to resize. However, it does not explain the role of username, port, or accessToken, nor whether pid and tag are mutually exclusive or one is required.

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 names a specific operation ('Resize the PTY'), a target ('a running process'), the selectors ('pid or tag'), and the relevant fields ('cols/rows'). Among the sibling tools, none offer PTY resizing, so the purpose is unmistakable and well-differentiated.

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?

The description makes the use case clear implicitly: use this when a running process's terminal dimensions need changing. However, it does not explicitly state when not to use it, whether a PTY must already exist, or which sibling tools are alternatives for interacting with a process.

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