Skip to main content
Glama

list_sessions

Read-only

Lists conversation sessions with their status to monitor active, idle, or unloaded work. Use scope to view managed sessions, all sessions, pending TODOs, and handoff notes.

Instructions

会話の一覧と状態を返す。scope="managed"(既定)は監視役が管理している会話(保留 pending・終わった done は状態を読みに行かず、名前・状態・note・cwd だけの小さい行。managed は付かない)と、TODO(todos。条件がそろっているかを due に。true / false / null=分からない。済んだものは includeArchived のときだけ)と、引き継ぎメモ handoff.md の先頭(handoff)。scope="all" はこの PC の会話を新しい順に。status は notLoaded(読み込まれていない・一覧に無い)/ idle(止まっている)/ active(動いている。activeFlags に waitingOnApproval・waitingOnUserInput)/ systemError。監視役でない会話から呼んでもよい。

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
cwdNoscope=all のとき、この作業フォルダの会話だけ
limitNo
scopeNomanaged
includeArchivedNo終わった・アーカイブした会話も含める(managed では済んだ TODO も)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.2

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds real behavioral context on top: managed rows intentionally skip reading pending/done status and carry just name/status/note/cwd, TODOs carry a tri-state due flag (true/false/null), and handoff shows only the head of handoff.md. It also discloses that the tool is callable from conversations that are not the manager, which is useful permission context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in the first clause, but the rest is one long run-on with nested parentheses that mixes return-value shape, status taxonomy, and parameter semantics together. It is dense rather than padded, yet the structure makes it harder to scan than it needs to be.

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?

There is no output schema, and the description compensates by describing the response contents for each scope, including the status enum values and activeFlags. The one real gap is the undocumented limit parameter, which matters for a list tool that defaults to 30.

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 50%, and the schema gives only an enum with no description for scope, so the description carries the important load: it defines what "managed" contains versus "all" (newest-first across this PC) and confirms includeArchived also pulls done TODOs. cwd and includeArchived are effectively restatements of the schema, and limit (default 30, max 100) is never explained, which keeps this below top marks.

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 ("会話の一覧と状態を返す") and then splits the output by the two scope modes, so an agent knows it gets a list plus status plus TODOs plus handoff notes. It never names a sibling such as read_session, though the remark that pending/done rows are small and their status is not fetched implicitly points at read_session for detail.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The description explains the managed vs all split and that archived/done items only appear with includeArchived, and it explicitly says calling from a non-manager conversation is allowed. It stops short of stating when to prefer this over read_session or the reporting/usage siblings, so usage is implied through the scope semantics rather than stated.

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