Skip to main content
Glama

create_direct_session

Create a direct editing session to apply patches to a specified repository path, enabling ChatGPT to modify files directly when configured.

Instructions

Create a Direct editing session for ChatGPT to apply patches directly. Requires enableDirectProfile: true in config.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNoOptional title describing the session's purpose
repo_pathYesRepository path inside workspaceRoot (e.g., 'my-project')
Behavior2/5

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

With no annotations provided, the description must disclose behavioral traits. It only states the config requirement and omits important details like side effects, idempotency, whether the session is temporary, or what state it creates. The lack of transparency for a session-creating tool is a significant gap.

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 concise with two clear sentences. The first sentence establishes the purpose, and the second adds a critical requirement. No redundant or irrelevant information. It could be slightly more efficient, but it is well-structured and front-loaded.

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 the lack of output schema, the description should at least hint at the return value or session creation outcome. It does not. Additionally, the context of sibling tools (e.g., 'finalize_direct_session', 'apply_patch') suggests a workflow, but the description gives no guidance on sequence or integration. The tool's complexity warrants more completeness.

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 100%, so a baseline of 3 is appropriate. The description does not add any additional meaning beyond the schema; it does not elaborate on the 'title' or 'repo_path' parameters. Thus, no extra value is provided for parameter understanding.

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 clearly states the tool's function: creating a Direct editing session for direct patch application. It uses specific verb+resource ('Create a Direct editing session') and adds context ('for ChatGPT to apply patches directly'). However, it does not explicitly differentiate from sibling tools like 'apply_patch' or 'finalize_direct_session', though the context implies a distinct role.

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 mentions a prerequisite ('Requires enableDirectProfile: true in config'), which provides a usage constraint. However, it lacks guidance on when to use this tool versus alternatives (e.g., when to create a session vs. applying a patch directly). No exclusions or when-not-to-use hints are given.

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/jiezeng2004-design/PatchWarden'

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