Skip to main content
Glama

list_chats

Lists the owner’s Claude Code chats newest first, showing title, open/closed state, last activity, sidebar group, pinned status, and one-line status; filter by title words, group, or pinned only.

Instructions

List the owner's Claude Code chats exactly as the Claude app sidebar has them, newest first: title, open in the app (busy or idle) or closed, last activity, sidebar group, pinned, and the chat's own one-line status after its last turn (or what it needs from the owner). query filters by words in the title ("screen helper"); group by sidebar group name; list_groups shows the groups.

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_chats"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupNo
limitNo
queryNo
pinned_onlyNo
include_archivedNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the burden itself; it does disclose result ordering (newest first) and the meaning of chat state (open busy/idle vs closed, plus the one-line status after the last turn), which is genuinely useful. It says nothing about result caps or the fact that paging is bounded by a limit, and no access-control or read-only confirmation is given beyond the word "List".

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?

Dense but front-loaded: the core action and ordering arrive in the first sentence, and filtering semantics follow. The enumeration of returned fields is partly redundant against the existing output schema, and the dangling "list_groups" clause is wasted or misleading phrasing, keeping it from a 5.

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?

For a zero-required-parameter list tool with an output schema, everything an agent needs to call it correctly is present: what it lists, how results are ordered, how to filter, and how to discover groups. The only shortfall is undocumented secondary filters, which is a minor gap against an otherwise self-sufficient definition.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across five parameters, so the description must compensate and it only partly does: `query` and `group` are explained with examples. `limit`, `pinned_only`, and `include_archived` are never mentioned, and the stray clause "list_groups shows the groups" refers to something that is not a parameter in this schema, adding confusion rather than semantics.

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 ("List the owner's Claude Code chats") plus ordering ("newest first") and the exact fields surfaced, so an agent knows precisely what this returns and how it differs from a content search. The sidebar framing makes the resource concrete rather than generic.

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 scopes the filter semantics usefully: `query` matches words in the title only ("screen helper"), which implicitly routes full-text or content searching elsewhere, and it points at list_groups for the group taxonomy. It stops short of naming an explicit alternative tool or a when-not-to-use condition, so it is strong context rather than full routing guidance.

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