Skip to main content
Glama

list_raw_sessions

Retrieve sessions with raw archive messages within a time window, grouped by project and session, to create recap-style summaries of activity.

Instructions

List sessions with raw archive messages inside a time window, grouped by (source_root, project, session_id) with first/last message epoch, message count, and optional role=user message samples. Use for recap-style summaries of what happened in a period. Output fields match remem raw sessions --json.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sinceNoOnly sessions with messages at or after this time (Unix epoch, ISO8601 datetime, or YYYY-MM-DD)
untilNoOnly sessions with messages at or before this time (Unix epoch, ISO8601 datetime, or YYYY-MM-DD; a date includes that full UTC day)
sampleNoSample up to N role=user message texts per session, ascending by time (default 0 = no samples)
projectNoProject name filter
Behavior4/5

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

With no annotations, the description carries the burden. It discloses grouping behavior, time-window filtering, and output fields. It does not explicitly state that it is read-only, but the listing semantics imply no side effects. The CLI reference adds behavioral authority.

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

Conciseness5/5

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

Two sentences, front-loaded with the primary action, and every clause adds value. No filler.

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?

The tool is simple with 4 optional params and no output schema. The description explains output fields and gives a CLI reference for exact format. Minor gaps remain around ordering and limits, but overall sufficient for an agent to select and invoke correctly.

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 baseline is 3. The description adds no parameter-specific details beyond the schema; it only references time window and samples, which the schema already documents.

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 clearly states the action ('List sessions with raw archive messages inside a time window'), specifies grouping keys, and mentions output details (epochs, message count, samples). It is distinct from sibling tools like search_raw or timeline by focusing on session-level aggregation.

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?

Provides an explicit use case: 'Use for recap-style summaries of what happened in a period.' It does not name alternatives or exclusions, but the intended context is clear given the siblings.

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/majiayu000/remem'

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