Skip to main content
Glama

Local Commander

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.

Input Schema

TableJSON 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 Windows 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. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only carry the generic flag set (not read-only, not idempotent, not destructive). The description adds genuinely useful behavior: expectDeviceName mismatch opens nothing (a silent no-op guard), startup is metered and counted as one project read, and omitting startup opens only the session.

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 the critical expectDeviceName guard, then returns, then the startup cost tradeoff. Dense and information-bearing, though a few clauses (return enumeration plus cost note) could be tightened.

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

Completeness5/5

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

No output schema exists, and the description compensates by naming the return shape (authenticated account, device ID/name, session envelope, optional startup context). Prerequisites, the failure mode, and the metering cost are all covered for this 5-parameter nested tool.

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?

With 100% schema coverage the baseline is 3, but the description adds real meaning beyond the schema: it explains expectDeviceName is the PC name the user gave and that a mismatch prevents opening, and characterizes what startup returns and its cost. It does not fully restate required-param prerequisites, keeping it below 5.

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?

States a specific verb and resource ('opening a session on the explicitly selected device/workspace') and scopes it precisely enough to separate it from execution_session_close and the discovery siblings. An agent can tell what this does without opening the schema.

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 clear context: use it for the explicitly selected device/workspace, and 'Discover workspace IDs first only when unknown' conditions the discovery path. The prerequisite routing to project_target_resolve is left to the schema rather than the description, and there is no explicit when-not statement, so it falls short of a 5.

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