Skip to main content
Glama
yiwenlu66
by yiwenlu66

create_session

Create a new persistent terminal session with a specified working directory for running commands and monitoring logs.

Instructions

Create a PTY session with an explicit working directory.

MCP does not provide a standard field for the client's current working directory. The caller must provide cwd explicitly.

Args: session_id: Stable identifier for this PTY session. cwd: Working directory for the session's shell. description: Free-form description of what this session is doing (for humans).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdYes
session_idYes
descriptionNoFree-form description of what this session is doing (for humans). Does not affect execution.
Behavior3/5

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

No annotations are provided, so the description carries full burden. It discloses that the 'description' parameter does not affect execution, which is transparent. However, it does not mention potential side effects (e.g., overriding existing sessions), required permissions, or error handling. For a tool that creates resources, some behavioral details are missing.

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?

The description is concise: a short opening sentence followed by bullet-like parameter explanations. Each word adds value. It is front-loaded with the core purpose. No unnecessary repetition or verbose phrasing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple creation tool with no output schema and no annotations, the description covers the purpose, parameter meanings, and a usage rationale. It does not describe return values or possible errors, but given the tool's simplicity, it is largely complete for an agent to use correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33% (only the 'description' parameter has a schema description). The tool description adds meaningful semantics for all three parameters: 'session_id' as a stable identifier, 'cwd' as the working directory, and reiterates that 'description' is free-form. This compensates well for the low schema coverage.

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 'Create a PTY session with an explicit working directory.' The verb 'create' and resource 'PTY session' are specific. It distinguishes from siblings which handle other session operations like clearing, configuring, or sending text.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains why the 'cwd' parameter is required due to MCP lacking a standard field for the client's current working directory. This provides context for when to use this tool. However, it does not explicitly state when not to use it or mention alternative tools for related tasks.

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/yiwenlu66/PiloTY'

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