Skip to main content
Glama

Open execution session

execution_session_open

Use this when opening a session on the explicitly selected device/workspace. Pass expectDeviceName with the PC name the user gave; a mismatch opens nothing. Returns the authenticated account, the device ID and name, the session envelope, and optional startup context. Include startup {path, taskId?} to receive project policy, Git state and owned task continuation in this same call. Discover workspace IDs first only when unknown. Startup is one metered project read; without startup this opens only the session.

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": {
      "deviceId": "<deviceId>",
      "workspaceGrantId": "<workspaceGrantId>"
    },
    "name": "execution_session_open"
  }
}

Input Schema

NameRequiredDescriptionDefault
startupNoExplicitly read project startup context in this call: project path and optional owned task ID. Returns policy, Git and bounded task continuation; each startup read is metered.
deviceIdYesSelected deviceId; use workspace_list when unknown
projectTargetNoExplicit project/environment target; immutable for this session. Paths become relative to its repository root. Use project_target_resolve first.
expectDeviceNameNoThe PC name the user gave for this work (its computer name, as workspace_list deviceName shows it). If the selected device has another name, no session is opened.
workspaceGrantIdYesSelected approved workspaceGrantId

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / properties / deviceId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • removedInput schema / properties / projectTarget / properties / projectId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • removedInput schema / properties / projectTarget / properties / targetId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • removedInput schema / properties / workspaceGrantId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  2. Changed1 schema field changed
    • changedInput schema / properties / expectDeviceName / description
      Previous value: -"The PC name the user gave for this work (its Windows computer name, as workspace_list deviceName shows it). If the selected device has another name, no session is opened."New value: +"The PC name the user gave for this work (its computer name, as workspace_list deviceName shows it). If the selected device has another name, no session is opened."
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations cover the safety profile (not read-only, not idempotent, not destructive, not open-world), and the description adds real behavior: a device-name mismatch opens nothing, what is returned on success, and that each startup read is metered. It does not describe failure modes beyond the mismatch case or any auth requirements.

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?

Front-loaded with the use condition and two sentences that each carry new information (guard behavior, startup trade-off). It is dense and slightly run-on with parenthetical asides, but no sentence is padding.

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 5-param, nested-object mutation tool with no output schema, the description lists the return payload so the agent knows what it gets back. Project-target resolution and error handling are delegated to the schema, which is reasonable given full schema coverage.

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 coverage is 100%, so baseline is 3, but the description adds meaning beyond the schema: expectDeviceName acts as a guard whose mismatch aborts the call, and startup is scoped to policy/Git/task continuation at a metered cost. projectTarget semantics are left to the schema.

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?

States a specific verb and resource ('opening a session on the explicitly selected device/workspace') and its scope, making it distinguishable from execution_session_close. It does not explicitly name sibling alternatives for the non-session path, but the action is unambiguous.

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?

Gives conditional guidance: discover workspace IDs first only when unknown, and include startup only when project policy/Git/task continuation is wanted. It frames the trade-off (startup is a metered read) which effectively tells the agent when to omit it, but it never names alternative tools for obtaining that context.

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.