Skip to main content
Glama

search_memory

Search approved project knowledge—decisions, constraints, facts, preferences, gotchas, and attempts—with evidence status, stale flags, and as-of history; verify disputed items before relying on them.

Instructions

Search approved project knowledge: decisions, constraints, facts, preferences, gotchas, attempts (what failed/worked) and keystone rules, each with its evidence and whether that evidence changed since (stale). Items marked disputed are being challenged by a pending proposal: check with the owner before relying on them. Pass as_of to see what was agreed at an earlier moment. Approved items are what the project agreed on; session history is not.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoOptional kind filter.
as_ofNoISO 8601 time (e.g. 2026-11-20T10:00:00Z): return what was approved knowledge at that moment instead of now.
queryNoWords to look for; omit to list current knowledge (rules and decisions first).
include_historyNotrue to include proposed, rejected, superseded and retired items (history); default is approved only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1-alpha.2

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose meaningful behavior: results carry their evidence and a staleness flag, disputed items are actively challenged by pending proposals, and include_history widens scope to proposed/rejected/superseded/retired items. It omits result sizing, pagination, or any permission requirements, which keeps it below 5.

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?

Scope is front-loaded in the first clause and the caveats about disputed items, as_of, and history follow in a logical order. The final clause 'Approved items are what the project agreed on' partly restates the opening, which is minor redundancy rather than bloat.

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 no-annotation, no-output-schema search tool with four optional params, the description conveys what comes back (items plus evidence plus staleness) and how scope changes at a point in time. It leaves result volume and sorting behavior unspecified, which is a modest gap given the 'rules and decisions first' ordering is only mentioned in the schema.

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 all four parameters are already documented in the input schema, including as_of semantics and the include_history default. The description's 'Pass as_of to see what was agreed at an earlier moment' largely restates the schema, so baseline 3 is appropriate.

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?

The description opens with a specific verb and resource ('Search approved project knowledge') and enumerates the item kinds returned (decisions, constraints, facts, preferences, gotchas, attempts, keystone rules), with evidence and staleness attached. The closing clause 'session history is not' separates it from the session-oriented sibling without the agent having to inspect schemas.

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?

It gives real usage conditions: use this for approved knowledge rather than session history, pass as_of for a historical snapshot, and check with the owner before relying on disputed items. It doesn't name a specific alternative tool for the session case, leaving that inference to the agent, so it falls short of a full 5.

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