Skip to main content
Glama
M-T-D-N

agentmemory-codex-windows

memory_smart_search

Search a project's memory with hybrid keyword and semantic ranking to return compact observation IDs, then expand them for full details.

Instructions

Search an explicit project with hybrid keyword/semantic ranking, returning compact results with observation IDs for progressive disclosure. Supply comma-separated expandIds to retrieve up to 20 full observations; expansion takes precedence over query and reports truncation. Use '*' only for deliberate cross-project reads. Search and expansion record retention access unless trackAccess=false. Use memory_recall when you need full, compact or narrative results in one call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax results (default 10)
queryNoSearch query; optional when expanding observation IDs
agentIdNoOptional agent ID for search and expansion; omit to preserve the configured scope, or pass '*' for a deliberate cross-agent read
projectYesExact registered project identifier, or '*' for a deliberate cross-project read
expandIdsNoComma-separated observation IDs to expand
trackAccessNoSet to false for analytical reads that must not reinforce access-based retention (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0-preview.14-glama.1

TDQS

A4.7/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full burden, and it does: it discloses a retention side effect ('Search and expansion record retention access unless trackAccess=false'), the precedence rule ('expansion takes precedence over query'), and truncation reporting. These are real behavioral traits not visible in the schema.

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 core purpose is front-loaded in the first sentence and every subsequent sentence carries distinct information (expansion, escape hatch, side effect, alternative). It is dense and slightly packed, but there is no filler.

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

Completeness4/5

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

For a 6-parameter tool with no output schema, the description covers routing, expansion behavior, side effects, and the cross-project escape hatch. Return format is only sketched ('compact results with observation IDs'), which is the one remaining gap.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds value beyond it by stating the precedence of expandIds over query and quantifying expansion ('up to 20 full observations'). The '*' semantics for project/agentId and the retention meaning of trackAccess are largely echoed from the schema.

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?

States a specific verb ('Search') and resource ('explicit project') and adds the ranking mechanism ('hybrid keyword/semantic ranking') plus the return shape ('compact results with observation IDs'). It explicitly distinguishes itself from the sibling memory_recall, so an agent can route without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Names the alternative tool (memory_recall) and the exact condition that selects it ('when you need full, compact or narrative results in one call'). It also gives the when-to-use rule for the '*' cross-project escape hatch, leaving little to inference.

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