Skip to main content
Glama
ArkaAiAdmin

Agentic Memory

by ArkaAiAdmin

memory_search

Retrieve and rank memories using hybrid semantic and full-text search. Filter by category, source, or knowledge graph properties for precise recall.

Instructions

Search memories by semantic + FTS5 hybrid search.

The primary recall tool. Returns ranked memories matching the query. When the CQRS write journal is enabled, pending (not-yet-materialized) entries are also checked and surfaced as a supplement when the main search returns no results.

Args: query: Natural-language search query (required). category: Filter to a category (e.g. "lessons", "decisions"). limit: Max results (default 10). include_global: Include global memories (default True for default agent, scoped for non-default agents). mode: "hybrid" (default), "semantic", "fts", "facts", "graph". belief_status: Filter KG facts by belief status (active, retracted, deprecated, unconfirmed). epistemic_source: Filter KG facts by epistemic source (agent, auto_save, hook, import, cron). fact_type: Filter KG facts by type (observation, agent_inference, external_stated, hypothesis, derived). memory_source: Filter memories by source type ("agent", "auto_save", "import"). Only returns memories whose source file category matches the given type. shared_with_me: If True, also include memories explicitly shared with the current agent (via the shared pool's target_agent_id).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNofts
limitNo
queryYes
categoryNo
fact_typeNo
tenant_idNodefault
belief_statusNo
memory_sourceNo
include_globalNo
shared_with_meNo
epistemic_sourceNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries full burden. It explains hybrid search, CQRS journal supplementation, and parameter effects (like include_global defaults). It does not mention destructive actions, auth needs, or rate limits, which is acceptable for a read-only search tool.

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 somewhat lengthy (13 lines) but well-structured, starting with the core purpose and then detailing parameters. It could be more concise, but the structure aids readability.

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

Completeness5/5

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

Given the complexity (11 params, many filters) and existence of an output schema, the description is thorough. It covers all parameter behaviors, including edge cases (CQRS journal, default scoping for include_global). No major gaps.

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

Parameters5/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 provides detailed explanations for all 11 parameters, including defaults, effects (e.g., mode options, belief_status values), and behavior (e.g., shared_with_me). This fully compensates for the lack of schema descriptions.

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 description clearly states 'Search memories by semantic + FTS5 hybrid search' and 'The primary recall tool. Returns ranked memories matching the query.' This provides a specific verb-resource combination and distinguishes it from siblings like memory_recall and memory_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 Guidelines3/5

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

The description identifies it as 'The primary recall tool' but does not explicitly state when to use alternatives or when not to use this tool. It provides context for the CQRS journal behavior but lacks exclusion criteria.

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/ArkaAiAdmin/Agentic-Memory'

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