Skip to main content
Glama
Memory Bridge
by shuimo233

memory_search

Read-onlyIdempotent

Search current applicable memory records by keyword and optional alternative wording to find relevant decisions or preferences, then verify each result against its source events.

Instructions

Search current applicable records by keywords and optional alternative wording.

Verify attribution against the source events. An empty focused search means no matching active record was found. Use memory_context to check which constraints apply.

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
limitNo
queryYes
task_idNo
match_modeNoFocused requires every term in the query or in one alternative group. Use it to verify a prior statement or identify a correction.broad
query_variantsNoAlternative keyword groups for the same question. Separate required terms with spaces. All terms in a group must match. Use likely alternate wording and preserve the user's intent.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the description's job is to add semantics beyond that. It does: an empty focused search is explicitly declared to mean 'no matching active record' rather than an error or empty corpus, and results are flagged as needing attribution checks against source events. It stops short of describing ranking, ordering, or how records outside the current constraint set are treated.

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?

Three short, front-loaded statements with no filler; the search scope comes first and the caveats follow. The line-broken phrasing is slightly fragmented but every sentence conveys distinct information.

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?

An output schema exists, so return-value explanation is not required, and the empty-result behavior is covered. What remains missing for a 5-parameter search tool is the role of limit/pagination and task_id, and any pointer on how this differs from the neighboring list/get/context tools.

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 only 40%, so the description carries meaningful weight. It explains 'keywords and optional alternative wording' (query/query_variants) and references focused search (match_mode), which partially compensates, but limit and task_id are undocumented in both schema and description, including whether task_id narrows results or merely annotates them.

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 and resource ('search current applicable records by keywords and optional alternative wording'), plus the scope qualifier 'current applicable' that distinguishes it from reading raw events. It does not explicitly contrast with siblings like memory_list or memory_get, so an agent must infer the boundary from names alone.

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?

'Verify attribution against the source events' and 'Use memory_context to check which constraints apply' give real context for how to use results and which sibling to consult first. However, there is no statement of when to choose this over memory_get or memory_list, and no explicit when-not guidance; the focused-vs-broad selection guidance lives only in the schema.

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