Skip to main content
Glama
memoryplugin

MemoryPlugin MCP Server

Official
by memoryplugin

recall_chat_history

Search and synthesize your past AI conversations to recall decisions, patterns, and preferences. Use date filters and parallel queries to retrieve relevant context.

Instructions

Search and synthesize context from the user's past AI conversations. MemoryPlugin's Chat History feature syncs conversations from ChatGPT, Claude, and other platforms, making them searchable.

Also known as the 'MemoryPlugin inject tool' or 'memoryplugin chat history tool'.

WHEN TO USE: When the user asks about their past decisions, patterns, preferences, relationships, projects, or anything where their conversation history provides valuable personal context. Consider proactively suggesting this when the user's question could benefit from their history.

HOW TO USE:

  • For simple lookups: a single query is fine

  • For complex/multifaceted topics: use parallel queries (via 'queries' array) approaching from different angles - timeline, emotions, people, decisions, outcomes, etc.

  • Set maxTokens per query (300-1000) to control how much context is returned. More tokens = richer detail but consumes more conversation window.

  • If unclear how much context to fetch, ask the user.

  • Use 'before'/'after' (ISO 8601 dates like "2025-01-15" or "2025-01-15T10:30:00Z") to constrain results to a date range. Bare dates are interpreted in UTC and are inclusive on both ends.

  • Use 'mode: "quality"' for slower but more thorough recall on hard or ambiguous queries; defaults to 'speed'.

Returns synthesized summaries (not raw conversation logs) with source metadata for citations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoRetrieval mode. 'speed' (default) is fastest; 'quality' runs a slower, more thorough retrieval pipeline for hard or ambiguous queries.
afterNoOptional ISO 8601 date lower bound (inclusive). Bare dates like "2025-01-15" mean start-of-day UTC.
queryNoNatural-language description of what the assistant is currently helping with. Use the end-user's latest request and any key details that should guide retrieval.
beforeNoOptional ISO 8601 date upper bound (inclusive). Bare dates like "2025-01-15" mean end-of-day UTC.
queriesNoArray of query objects to process in parallel (max 15). Use for complex topics requiring multiple angles.
platformNoOptional hint about the downstream chat platform to influence formatting.
maxTokensNoMaximum tokens to allocate for injected context (defaults to 600, hard cap 2000).
conversationContextNoShort plaintext summary of the immediate conversation exchange, if available.
conversationHistoryNoOrdered list of recent dialogue turns to ground retrieval. Each item must include a role ('user' or 'assistant') and the full message text.
Behavior4/5

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

With no annotations supplied, the description carries the full burden and discloses return format (synthesized summaries with source metadata), date bound semantics (inclusive UTC), mode behavior (quality vs speed), and token consumption. It does not discuss failure modes or rate limits, but covers the most relevant behaviors.

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?

The description is longer than average but well-structured with WHEN TO USE, HOW TO USE, and output-format note. Most lines earn their place, though the alias sentence adds little functional value.

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 description covers purpose, when to use, how to use key parameters, and return behavior, which is sufficient for a 9-parameter tool with no output schema. It omits edge cases like the 15-query parallel cap or failure behavior, but those are minor for selection/invocation.

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

Parameters4/5

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

Although schema coverage is 100%, the description adds practical value by suggesting maxTokens range (300-1000), giving ISO 8601 date examples, and explaining parallel queries for complex topics. This goes beyond the schema's field descriptions without fully clarifying every parameter interaction.

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 opening sentence 'Search and synthesize context from the user's past AI conversations' states a specific verb and resource, and the later note 'Returns synthesized summaries (not raw conversation logs)' distinguishes it from raw-log retrieval tools like get_full_conversation. The alias 'MemoryPlugin inject tool' reinforces its role in injecting recall context.

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?

The WHEN TO USE section explicitly lists situations (past decisions, patterns, preferences, relationships, projects) and even suggests proactive use. It lacks explicit when-not-to-use instructions or named alternatives, so it stops short of a 5.

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/memoryplugin/mcp-server'

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