Skip to main content
Glama

list_sessions

List detached fire sessions by project or all projects to review running, exited, or stopped processes before starting or restarting servers and avoid duplicates.

Instructions

List detached fire sessions for the current project by default, including other directories that resolve to it (started with fire --bg or start_session, by any agent or the user): id, command, note (why it was started), cwd, status (running, exited, stopped = stopped on purpose, lost), pid and exit code. Pass cwd to select another project directory, or all: true to list every project (cwd is then ignored). Check this before starting or restarting servers to avoid duplicates. If a previous session for the same command exited, read its session_output first: it usually shows why it failed (e.g. port in use).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoReturn sessions from every project. When true, `cwd` is ignored.
cwdNoProject directory to select. Relative paths resolve from the MCP server's directory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A4.4/5.0
Behavior4/5

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

No annotations exist, so the description carries the disclosure burden, and it does considerable work: it defines the default project scoping and the directory-resolution rule, decodes the status values (`running`, `exited`, `stopped` = stopped on purpose, `lost`), and notes that `cwd` is ignored when `all: true`. It stops short of disclosing permissions, result limits, or pagination, which are the remaining behavioral gaps for a listing tool.

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 front-loaded with the scope and the field list, then moves to parameter overrides and finally the workflow advice, so an agent gets the essentials first. The single dense paragraph is long, and the field enumeration is verbose, but it earns its space because there is no output schema to describe the return shape.

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?

With no output schema and no annotations, the description supplies the return fields, the status vocabulary, the default scoping rule, parameter overrides, and a follow-up workflow pointer to `session_output`. An agent has everything needed to call this correctly and interpret the result without opening other tools.

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 a baseline of 3 applies, but the description adds the missing default semantics: omitting `cwd` selects the current project plus other directories that resolve to it, and `all: true` overrides it. That is meaning the schema itself does not state about omitted parameters.

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 description gives a specific verb and resource ('List detached `fire` sessions') plus the default scope ('for the current project ... including other directories that resolve to it'), so an agent knows exactly what comes back. It also enumerates the returned fields (id, command, note, cwd, status, pid, exit code), which further distinguishes it from siblings like `session_output` or `list_global`.

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 states explicit trigger conditions: 'Check this before starting or restarting servers to avoid duplicates' and 'If a previous session for the same command exited, read its `session_output` first', naming the sibling to use instead. It also gives scope-switch guidance (use `cwd` for another project, `all: true` for every project). What is missing is any statement of when *not* to call it or how it relates to mutation siblings such as `stop_session`.

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