Skip to main content
Glama
hrmtz

hippocampus-mcp

by hrmtz

search_ghost_memory

Search and rank accumulated rules and feedback from past agent sessions across projects. Empty query shows top memories; non-empty query performs hybrid text and semantic search.

Instructions

Search cross-project agent ghost memories (= this agent's rule/feedback accumulation).

Empty query → list top-ranked memories (= "what's in my ghost vault" overview). Non-empty query → hybrid FTS + vector semantic ranking via agent.search_ghost_ranked (SECURITY DEFINER, migration 020).

⚠️ current_project is caller-attested, NOT server-verified. shared-restricted requires current_project in per-memory allowlist (= pentest/commercial boundary).

Ranking: rank_score = base_score * recency_factor + semantic_sim * 0.5 base_score = 0.2activation + 0.5incident_prevention + 0.3endorsement - 0.4correction - 0.2pred_error + 0.1scope_bonus recency_factor = exp(-days_since_last_activated / 30) semantic_sim = 1 - cosine_distance(query_vec, memory.dense) (0 if empty query)

Each returned row triggers agent.bump_activation, so memories that surface in search naturally rise in rank over time (= self-tuning loop).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNo
n_resultsNo
expand_linksNo
current_projectNo
include_restrictedNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

No annotations provided, so description carries full burden. It discloses ranking formula, the self-tuning loop via bump_activation (side effect), and security details about SECURITY DEFINER and shared-restricted allowlist. This is comprehensive behavioral disclosure.

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?

Well-structured with clear sections: purpose, security warning, ranking formula, side effect. Front-loaded core usage. However, the ranking formula is detailed and may be more than necessary for an agent to select/invoke the tool correctly.

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 tool with 5 parameters and no schema descriptions, the description covers overall behavior, ranking, side effect, and security. But missing explanations for n_results, expand_links, and include_restricted limit completeness. Output schema exists, so return values are not needed.

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

Parameters2/5

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

Schema coverage is 0%, so description must explain all 5 parameters. It only explains the query parameter (empty vs. non-empty) and implicitly current_project via security warning. n_results, expand_links, and include_restricted are not described. The ranking formula is given but not tied to parameters.

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?

Clearly states the tool searches cross-project agent ghost memories, differentiating empty query (list top-ranked) from non-empty query (hybrid search). The verb 'search' and resource 'ghost memory' are specific, and sibling tools (conversations/diaries) are distinct.

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 context for empty vs. non-empty query usage and security caveats about current_project not being server-verified. Lacks explicit alternatives among siblings, but the purpose is so distinct that siblings are clearly different.

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/hrmtz/hippocampus'

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