Skip to main content
Glama
adamkwhite

Claude Conversation Memory System

by adamkwhite

search_by_session_id

Retrieve all stored conversations that share a session ID to reconstruct a multi-turn session across multiple records, sorted chronologically.

Instructions

Find all conversations sharing a session_id (D2 metadata field).

Useful for reconstructing a multi-turn session that spans several stored conversation records (e.g. a Cursor working session, a Claude thread continued across days). Results are sorted chronologically. Requires SQLite FTS.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
session_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries full behavioral burden. It adds meaningful traits beyond the schema: 'Results are sorted chronologically' and 'Requires SQLite FTS'. It does not mention exact-match semantics or permissions, but the read-oriented wording and presence of an output schema reduce ambiguity.

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?

Three concise sentences: the first states the core function, the second gives the primary use case with examples, and the third provides ordering and a system prerequisite. Every sentence earns its place and there is no filler or redundancy.

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 two-parameter read tool with an output schema present, the description covers the purpose, a concrete use case, chronological ordering, and the SQLite FTS dependency. It does not explain the limit parameter's effect or mention alternative tools, but these are minor given the tool's simplicity and available output schema.

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 0%, so the description must compensate. It adds meaning for session_id by calling it a 'D2 metadata field' and explaining its role in reconstructing sessions, but the limit parameter is not described at all beyond its schema default. This partial compensation leaves one parameter without added context.

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?

Description uses a specific verb ('Find') with a concrete resource ('all conversations sharing a session_id') and clarifies that session_id is a 'D2 metadata field', clearly distinguishing this from sibling tools that search by topic, tag, or conversation type. An agent can immediately understand what the tool returns and how it differs from alternatives.

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 clear context for when to use the tool: 'reconstructing a multi-turn session that spans several stored conversation records', with concrete examples like a Cursor working session or a Claude thread continued across days. It does not explicitly name alternatives or state when not to use it, but the use case is unambiguous.

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/adamkwhite/universal-memory-mcp'

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