Skip to main content
Glama

Search Project Memory with FTS5 BM25 Ranking

search_project_memory
Read-onlyIdempotent

Search project memory by keyword or error message to find matching titles, tags, summaries, anchored files, and active dead-ends with contextual snippets.

Instructions

Full-text search across project titles, tags, summaries, anchored files, and active anti-loop dead-ends with contextual match snippets.

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": {
      "project_path": "<project_path>",
      "query": "<query>"
    },
    "name": "search_project_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYesSearch keywords or error messages
categoryNoFilter by category ('architecture', 'decision', 'session', 'dead_end', 'note')
project_pathYesAbsolute path to the project workspace root

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's added value is in disclosing that only *active* anti-loop dead-ends are indexed and that results come back as contextual match snippets. The BM25 ranking detail is in the title rather than the description, which is the only meaningful gap.

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?

A single front-loaded sentence with no filler; the searchable-field list is the core payload. Slightly dense but every clause earns its place.

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?

With no output schema, the description must convey return shape, and it does so only partially — 'contextual match snippets' without stating that results are BM25-ranked (that lives in the title) or how the limit caps results. Adequate for a simple read-only search tool, but the return-value story is thin.

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 coverage is 75%, so the schema already documents query, category, project_path, and limit. The field list in the description clarifies what the query string matches against, but it adds nothing about limit bounds, default result count, or how category interacts with the searched fields. Baseline 3 is appropriate.

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 names a specific verb+resource (full-text search over project memory) and enumerates exactly what is searched: titles, tags, summaries, anchored files, and dead-ends. It does not distinguish itself from the sibling search_global_knowledge, but a reader knows precisely what this tool does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use statement and no named alternative (e.g., search_global_knowledge for cross-project recall, check_dead_ends for dead-end inspection). Only the implicit scope of 'project' hints at usage boundaries.

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