Skip to main content
Glama

recall_previous_sessions

Search a repository's project memories by semantic similarity to retrieve past decisions, root causes, and context ranked by relevance, even when query words differ.

Instructions

Searches project memories by semantic similarity, not keywords. Returns past decisions, root causes, and context ranked by relevance. Finds matches even when the query uses different words than what was saved.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>",
      "repo": "<repo>"
    },
    "name": "recall_previous_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository name (as shown in list_repos)
queryYesSearch query (name, keyword, or description)
max_resultsNoMaximum results to return

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.2

TDQS

B3.4/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 behavioral burden. It does disclose meaningful traits beyond the schema: results are ranked by relevance and contain past decisions, root causes, and context. It omits whether the repo must already be indexed, what happens when nothing matches, and pagination/truncation behavior at the 1000-result ceiling.

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?

Three short sentences, front-loaded with the key differentiator. Some waste: 'semantic similarity, not keywords' and 'finds matches even when the query uses different words' restate the same idea, so one sentence could carry both.

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

Completeness3/5

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

For a 3-parameter read tool with no annotations and no output schema, the description conveys what kind of content comes back and how it is ordered, which covers the essentials. It still leaves prerequisites (indexed repo), empty-result behavior, and result-limit semantics unaddressed.

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 all three parameters are already documented, including the max_results default and bounds. The description adds no meaning beyond that — no guidance on query phrasing for semantic search or on how repo scoping interacts with the recall scope.

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 (searches project memories) plus the retrieval mechanism (semantic similarity, not keywords), which cleanly separates it from keyword/text search tools. It does not name a specific sibling such as get_memory or find_text, so an agent must infer the routing itself.

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 implied rather than stated: 'finds matches even when the query uses different words' tells the agent this is the right choice for fuzzy/conceptual recall, but there is no explicit when-to-use, when-not-to-use, or named alternative. The agent has to derive the contrast with keyword search and direct memory lookup on its own.

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