Skip to main content
Glama

Create Session

session_create

Creates a new conversation session in a workspace using a workspace ID or project directory path, enabling MCP clients to start chat with an AI coding agent.

Instructions

Create a new conversation session in a workspace. A directory path or workspace ID can be used.

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": {
      "workspace": "<workspace>"
    },
    "name": "session_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoModel name (e.g. claude-opus-4, gpt-4o)
providerNoBackend provider (only used when auto-starting a workspace)
sessionIdNoCustom session ID (auto-generated if omitted)
workspaceYesWorkspace ID or project directory path

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and leaves major questions open: whether supplying a directory path auto-starts a workspace, whether a duplicate sessionId overwrites or errors, and whether the session persists after the call. The only behavioral hint ('only used when auto-starting a workspace') lives in the schema, not the description.

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?

Two short sentences with the action front-loaded and zero filler. Every clause carries information, and nothing relevant is buried later in the text.

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?

For a creation tool with no annotations, no output schema, and a sessionId that is auto-generated when omitted, the description never explains how the agent obtains the new session identifier or what the call returns. That omission is material to calling the tool successfully and then using the resulting session.

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 all four parameters are already documented, and the description only restates that workspace accepts an ID or a directory path. It adds no format examples, defaults, or interaction notes beyond the schema baseline.

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 gives a specific verb and resource ('Create a new conversation session') plus its scope ('in a workspace'), which is enough to separate it from session_list, session_history, and session_delete. It stops short of explicitly contrasting itself with workspace_start, which also provisions resources in the same family.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, no mention of prerequisites, and no named alternative. The sentence about directory path vs workspace ID describes accepted inputs rather than when this tool is the right choice over workspace_start or send.

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