Skip to main content
Glama

list_sessions

Retrieve and filter saved AI conversation sessions by IDE or date to manage organized Markdown records efficiently.

Instructions

【列出会话】当用户说"查看会话列表"、"列出所有会话"、"显示已保存的对话"、"有哪些会话记录"等时调用。支持按IDE和日期筛选。触发词:列表、查看、显示、所有、历史会话/对话/记录

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
base_dirNo会话保存的基础目录路径(可选,优先级最高。未指定时依次使用: 环境变量MCP_SESSION_BASE_DIR > config.json配置 > 默认路径)
ide_nameNoIDE名称(可选,用于筛选特定IDE的会话,如只查看Cursor的会话)
date_filterNo日期过滤(可选,格式: YYYY-MM-DD,如 2025-12-16,用于查看指定日期的会话)
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions filtering capabilities but doesn't describe important behavioral aspects: whether this is a read-only operation, what the output format looks like, whether there are pagination limits, or if it requires specific permissions. The description focuses on trigger phrases rather than operational behavior.

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 description is reasonably concise but could be more focused. The first sentence establishes purpose, but the trigger phrase examples and Chinese characters '【列出会话】' add some redundancy. The information is front-loaded with the core purpose, but the trigger phrase list could be more efficiently integrated.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 3 parameters, no annotations, and no output schema, the description is insufficient. It doesn't explain what a 'session' represents in this context, what information is returned in the list, or how the filtering actually works. The focus on trigger phrases doesn't compensate for the lack of operational context needed for an AI agent to use this tool effectively.

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 description coverage is 100%, so the schema already fully documents all three parameters. The description mentions filtering by IDE and date, which aligns with the schema parameters, but doesn't add any meaningful semantic context beyond what's already in the parameter descriptions. This meets the baseline for high schema coverage.

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?

The description clearly states the tool's purpose: listing sessions with filtering capabilities. It specifies the verb '列出' (list) and resource '会话' (sessions), and mentions filtering by IDE and date. However, it doesn't explicitly differentiate from sibling tools like 'search_sessions' or 'read_session', which prevents a perfect score.

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 provides implied usage guidance through example trigger phrases like '查看会话列表' and '列出所有会话', suggesting this tool is for viewing session lists. However, it lacks explicit guidance on when to use this versus alternatives like 'search_sessions' or 'read_session', and doesn't mention any exclusions or prerequisites.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/oscar-wang-xin/mcp-session-saver'

If you have feedback or need assistance with the MCP directory API, please join our Discord server