Skip to main content
Glama

create_work_session

Create a separate work session for this AI conversation and a unique workspace folder. Keep the returned workSessionId and pass it on every subsequent call, including process output and undo. Sessions unused for 30 days (or the least recently used, past 500) are forgotten; their folders stay. Relative file paths and commands without cwd use that workspace; ~ still means home. This separates activity and process control, not access to shared absolute paths or the physical browser.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
deviceIdNoComputer name or id
workSessionIdNoFrom create_work_session
workspaceRootNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id; optional with one computer or a default"New value: +"Computer name or id"
    • removedInput schema / properties / name / maxLength
      Removed value: -120
    • removedInput schema / properties / name / minLength
      Removed value: -1
    • removedInput schema / properties / workspaceRoot / maxLength
      Removed value: -4096
  2. Changed2 schema fields changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id from list_devices. Optional with one computer online or a default set."New value: +"Computer name or id; optional with one computer or a default"
    • changedInput schema / properties / workSessionId / description
      Previous value: -"Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work."New value: +"From create_work_session"
  3. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare the mutation/safety profile (readOnlyHint false, destructiveHint false, openWorldHint false); the description goes well beyond that with a lifecycle policy (sessions unused 30 days or LRU past 500 are forgotten, folders persist) and precise filesystem semantics ('~ still means home'). It also delimits scope so the agent knows this grants no access to shared absolute paths or the physical browser. Nothing here contradicts the annotations, since the eviction applies to session records, not the workspace folder.

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?

It is dense but well ordered: creation purpose first, then the required follow-up behavior, then lifecycle, then path semantics, then scope limits. Each sentence carries distinct information, though the retention sentence is packed tightly enough to need a second read.

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 four-parameter creation tool with annotations but no output schema, the description covers the essentials: it reveals the returned workSessionId (the key return value) and mandates its reuse, plus persistence and path behavior. The remaining gap is the unlabeled 'name' and 'workspaceRoot' parameters, which the description only hints at.

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 coverage is 50%: deviceId and workSessionId are documented in-schema, while name and workspaceRoot are bare. The description compensates for workSessionId (returned by this call, must be reused) and implies workspaceRoot via the relative-path rule, but adds nothing about what 'name' should contain. That is roughly baseline value given half the parameters are already documented.

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 opening sentence names a specific verb and resource ('Create a separate work session ... and a unique workspace folder') and scopes it to 'this AI conversation'. The closing sentence further bounds the purpose ('separates activity and process control, not access to shared absolute paths or the physical browser'), so an agent can tell what class of tool this is and what it does not touch.

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?

It gives clear operational guidance: keep the returned workSessionId and pass it on every subsequent call, including process output and undo. It also states the path-resolution rule for relative paths and commands without cwd. It never names alternatives such as get_work_session or list_work_sessions, so the when-not-to-use side is left implicit rather than explicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources