Skip to main content
Glama

claude_list_sessions

List Claude Code sessions recorded on the machine, sorted by recency, showing initial prompt, context tokens, and model; filter by folder or limit results.

Instructions

Lista las sesiones de Claude Code registradas en la máquina, ordenadas por fecha reciente, indicando su prompt inicial, tokens en contexto y modelo.

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": "claude_list_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoOpcional. Filtrar sesiones pertenecientes a una carpeta o repositorio específico.
limitNoCantidad máxima de sesiones a retornar (por defecto 10).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does useful work by declaring the sort order (most recent first) and the returned fields (initial prompt, context tokens, model), which implies a read-only local-filesystem operation. It does not state whether the read touches files on disk, whether anything is cached or mutated, or how results behave past the limit — gaps that matter when nothing structured covers them.

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?

A single dense sentence that front-loads the resource and then the ordering and output fields; nothing is redundant. It is slightly packed — ordering, three return fields and scope in one clause — but every element earns its place.

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?

For a simple two-optional-parameter list tool with no output schema, the description is close to sufficient: it names the three values returned, which substitutes for the missing output schema. The remaining gap is guidance on how this relates to sibling session tools.

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

Parameters3/5

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

Schema coverage is 100% and both parameters (cwd filter, limit with default) are documented in the schema itself. The description adds no syntax, path-format, or defaulting detail beyond that, so the baseline 3 applies.

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: "Lista las sesiones de Claude Code registradas en la máquina", plus the ordering and the fields surfaced. An agent knows exactly what it gets. It does not differentiate itself from siblings such as claude_session_status or claude_compact_session, which keeps it below a 5.

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?

Usage is only implied: an agent can infer this is the tool for browsing recent sessions. There is no explicit when-to-use or when-not-to-use, and no pointer to the alternative for inspecting a single session's state, so the choice between this and claude_session_status is left to inference.

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