Skip to main content
Glama

search_memories

Search stored memories by keyword to retrieve relevant preferences, patterns, decisions, and context across sessions, with filtering, relevance or recency sorting, and pagination.

Instructions

按关键词搜索记忆内容,默认按相关度(命中次数+置信度)排序,支持分页

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": "search_memories"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo排序方式:relevance 相关度优先(默认),recent 按时间倒序
typeNo记忆类型过滤(可选)
limitNo返回数量限制(默认 50)
queryYes搜索关键词,多个词以空格分隔需同时命中(AND)
offsetNo分页偏移量(默认 0)
projectNo项目名称(可选)
minConfidenceNo最低置信度过滤 0-1(可选)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.2/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 burden. It does disclose useful behavior beyond the schema: relevance is computed from hit count plus confidence, and results are paged. It says nothing about result size caps, read-only guarantees, or what happens when no keyword matches, which matters for an unannotated 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?

A single front-loaded sentence with no filler; the search verb, default ordering, and pagination each earn their clause. Slightly dense but structurally sound.

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 7 parameters, full schema coverage, and no output schema or annotations, the essentials are covered. What is missing is routing guidance among the many memory siblings and any behavioral note on result limits or empty-result handling.

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 every parameter including the sort and type enums is already documented. The description restates the default relevance ordering and pagination but adds no format or interpretation details beyond the schema baseline.

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+resource combination: keyword-based search over memory content, plus default relevance ordering and pagination. It is clear what the tool does, but it never distinguishes itself from siblings such as get_memories (listing) or get_memory_by_id (lookup by id).

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?

The description contains no when-to-use or when-not-to-use guidance and names no alternative. An agent must infer from the name alone that this is the keyword-search path versus the listing or id-lookup siblings.

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