Skip to main content
Glama

memory_search_tool

Search persistent engineering memories by full-text query with tag, type, project, and validity filters; optionally include stale, expired, or file-state entries.

Instructions

Hybrid tag + full-text search.

Args: query: Search query (full-text via Turso FTS5) types: Filter by memory types tags: Filter by tags include_stale: Whether to include potentially stale items limit: Maximum results (default 20) as_of: Evaluate temporal validity at this ISO timestamp include_expired: Include memories outside their validity window include_file_state: Include operational file-state TLDRs (default false) project: Optional project root path. Auto-detected from git root if omitted.

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_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo
as_ofNo
limitNo
queryYes
typesNo
projectNo
include_staleNo
include_expiredNo
include_file_stateNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.11.0
    • addedInput schema / properties / as_of
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "As Of"
      +}
    • addedInput schema / properties / include_expired
      Added value: +{
      +  "default": false,
      +  "title": "Include Expired",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / include_file_state
      Added value: +{
      +  "default": false,
      +  "title": "Include File State",
      +  "type": "boolean"
      +}
  2. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full load, and it does disclose real behavior: stale items are excluded by default, temporal validity can be evaluated at a timestamp, expired memories are filtered by a validity window, and project is auto-detected from git root when omitted. It says nothing about result ordering/ranking, whether it is a pure read, or the cost of the hybrid search, which matters for a search endpoint.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single-line purpose is front-loaded and waste-free, but the body is a raw docstring dump of Args with no grouping or framing. Defaults (20, false) are restated from the schema, spending words on information already in structured fields.

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 values need not be explained, and each parameter gets a line. For a 9-parameter search tool with zero annotation coverage, though, the definition leaves unresolved how results are ranked, whether search spans projects by default, and what values types accepts - all things an agent needs to call it well.

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 description coverage is 0%, so the Args block is doing all the work and it does define every one of the 9 parameters, including the FTS5 backend for query, the default of 20 for limit, and the ISO timestamp semantics of as_of. Gaps remain: the accepted values for types and the definition of "stale" are unexplained, so the agent still cannot construct a valid types filter without guessing.

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?

"Hybrid tag + full-text search" names a specific retrieval technique and implies the resource (memories, given the tool family). It stops short of differentiating itself from siblings like memory_list_tool, memory_recent_tool, or memory_get_tool, so an agent must infer which retrieval path to use.

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?

There is no when-to-use guidance, no statement of when not to use it, and no named alternative. The parameter list implies scenarios (historical lookups via as_of, cross-project via project) but the agent has to reconstruct those conditions itself.

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