Skip to main content
Glama

start_session

Start a configured fire command as a detached managed session for long-running processes; it survives your shell and can be listed, read, signaled, or stopped.

Instructions

Start a configured fire command detached, in a managed session. ALWAYS use this for long-running processes (dev servers, watchers, workers, tunnels, log tails) instead of backgrounding them in your own shell: the process survives your shell, and you, other agents and the user can list it, read its output, send input/signals, or stop it. command must be a configured fire command (find it with search_commands). One command in one cwd is one session: if it is already running, this returns its id and replaces its note instead of starting a duplicate; if it ended (crashed or stopped), it starts again under the same id with the new note. So to restart a server, stop it with stop_session and call this again. Returns the session id as session_id; then confirm it came up with session_output. Fails for commands the user reserved for humans (agents: false).

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": {
      "command": "<command>",
      "note": "<note>"
    },
    "name": "start_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoProject directory to resolve and run the command from. Defaults to the server's cwd.
noteYesVery short context about why you are starting it (e.g. "api for auth e2e tests"). Other agents and the user see it in `list_sessions`.
commandYesThe fire command path plus its arguments, one token per item, without the leading `fire`, e.g. `["api", "dev", "--port", "3000"]` for `fire api dev --port 3000`.

Output Schema

NameRequiredDescriptionDefault
okYes
stderrYes
stdoutYes
session_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses that the process survives the caller's shell, that the session is shared with other agents and the user, and the deduplication/restart semantics (same command+cwd returns the existing id and replaces the note; a dead session restarts under the same id). It also names a failure mode (commands reserved for humans with `agents: false`), though it says nothing about permissions, concurrency, or resource limits beyond that.

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 action and its usage rule, then moves to mechanics and failure modes. It is a dense paragraph of long clauses rather than a list, but essentially every sentence carries a distinct operational fact; only the repeated restart explanation is slightly redundant.

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?

An output schema exists, yet the description still names the key return value (`session_id`) and the immediate next step (`session_output` to confirm startup), which closes the loop on a multi-step workflow. For a three-parameter session tool with a documented return type, nothing an agent needs in order to call it correctly is missing.

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 3 is the baseline, but the description adds real meaning: `command` must be a *configured* fire command discoverable via `search_commands`, and `cwd` participates in session identity ("one command in one cwd is one session"). That identity rule is not derivable from the schema alone.

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 first clause names a specific verb and resource ("Start a configured `fire` command detached, in a managed session") and the scope (detached, managed) is precise enough to separate it from run_command or a shell background job. An agent knows exactly what operation this performs 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 Guidelines5/5

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

It gives an explicit when: long-running processes (dev servers, watchers, workers, tunnels, log tails), and an explicit when-not: backgrounding in your own shell. It also names alternatives for adjacent needs — `search_commands` to discover the command and `stop_session` before a restart — so the agent is routed rather than left to infer.

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