Skip to main content
Glama

Search memory

memory_search
Read-only

Semantic search over durable memory. It applies when a task depends on a past decision, a preference, a host, a credential location, or how something is usually done. Queries retrieve best as full sentences. Superseded facts are excluded, so each hit is what is believed now; include_superseded and as_of change that. Each hit's source is the name of the app that wrote it. tags keeps only facts carrying all of them.

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>"
    },
    "name": "memory_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoKeeps only facts carrying every one of these tags. A fact filed without one of them is dropped, so a tag the fact was never filed under makes the search report nothing known about something the store holds. Absent or empty, no tag filter applies.
as_ofNoWhat the store held at this instant, as a date, `2026-03-01`, read as midnight UTC, or a full RFC 3339 instant. The filter drops every fact that started after the instant, so an instant earlier than a fact's start hides that fact and the search answers "nothing is known" about something the store holds. An instant the person named reflects what they asked; one worked out from the question is a guess. A wrong guess can hide a fact that holds now or return one a later correction retired, and leaving as_of absent risks neither. When absent, the search answers as of now, which is what almost every question wants. It needs a credential that may read history, and it cannot be set beside include_superseded.
limitNoMaximum rows. Default 8, at most 50 unless the operator changed it.
queryYesWhat you want to know, in natural language. Full sentences retrieve better than keywords.
detailNo'full' adds each hit's fused score and whether it came from the primary set. Results and order are the same either way.
projectNoSlug or path of the current project. Its namespace joins the user namespace and global in the default set, so its facts rank as primary hits. When the operator turned off the wider reach, a project not named here or in namespaces is not searched at all. It has no effect when namespaces is set.
namespacesNoThe namespaces to search. When absent, the search covers the user namespace, global and the project's namespace when project is set, as primary hits, then every other namespace the credential can read at a lower rank unless the operator turned that wider reach off. A non-empty list searches only the listed namespaces and their aliases, so it narrows the search. Namespaces the credential cannot read are left out either way.
include_supersededNotrue includes facts that a later correction replaced, which answers "what did we believe before". Off by default, because a superseded fact read as current is worse than a missing one. It needs a credential that may read history, and it cannot be set beside as_of.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, it discloses ranking behavior (primary hits vs. lower-ranked wider reach), credential requirements for history reads ("needs a credential that may read history"), operator-controlled caps ("at most 50 unless the operator changed it"), and the safety-oriented default of excluding superseded facts. It also explains what each hit's source field means, which no annotation or schema supplies.

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 purpose is front-loaded in the first sentence and the remaining sentences are dense with operative detail, with no filler or marketing language. A few sentences echo schema content (tags, sentence queries) that could be trimmed, keeping it short of a 5.

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?

For an 8-parameter tool with no output schema, the definition covers the essential gaps: what is returned (current beliefs only, with provenance), namespace and ranking scope, credential prerequisites, and interactions between filters. Nothing an agent needs to call it correctly appears to be missing.

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 100% and the per-parameter descriptions are already extremely detailed, including the as_of/include_superseded exclusivity. The description mostly restates that layer (tags must all match, superseded exclusion, sentence-style queries) rather than adding new semantics. Baseline 3 applies when the schema does the heavy lifting.

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?

"Semantic search over durable memory" is a specific verb+resource, and the follow-up sentence enumerates the exact situations the tool serves (past decision, preference, host, credential location, usual practice). Combined with the explicit statement that superseded facts are excluded, an agent can distinguish this from memory_history or memory_write without opening any schema.

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 description gives clear when-to-use context (tasks depending on prior decisions, preferences, hosts, credentials) and adds targeted guidance on defaults, e.g. that leaving as_of absent "is what almost every question wants" and risks neither hiding nor resurrecting facts. It stops short of naming a sibling tool as the alternative for history/audit needs, so there is no explicit when-not-to-use routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources