Skip to main content
Glama

Search memory

search
Read-onlyIdempotent

Query long-term memory by meaning and keywords to recall workspace facts, decisions, lessons, procedures, warnings, and shared know-how before acting, designing, fixing, or retrying.

Instructions

Search long-term memory by meaning and keywords: this workspace's facts, decisions, lessons, procedures and warnings, plus shared general know-how. Use it before the first action on a named repo, service, cluster or ticket, before proposing a design or a fix, after an error and before retrying, and whenever the user refers to past work. Read-only. Returns mode (hybrid, or keyword when the embedder is down) and hits, each with namespace, kind, type, text, node and score; facts reached through the graph from a direct hit are included.

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

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of direct hits to return.
queryYesWhat you want to know, in plain words or names.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so 'Read-only' adds little. The description earns credit for disclosing beyond that: the retrieval mode degrades to keyword when the embedder is down, and results include facts reached through the graph from a direct hit — non-obvious behavior an agent should know.

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?

Front-loaded with purpose, then usage triggers, then return shape, in a compact three-part structure. The single long trigger sentence is dense but each clause adds a distinct condition rather than repeating itself.

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

Completeness5/5

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

For a two-parameter, read-only retrieval tool with rich annotations and an existing output schema, the description covers what it searches, when to call it, and how results can degrade or expand through the graph. Nothing an agent needs to invoke it correctly is missing.

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 'query' and 'limit' are already documented in the schema, and the description adds no syntax, format, or limit-tuning guidance. Baseline of 3 is appropriate when the schema carries the parameter burden.

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 and resource ('Search long-term memory by meaning and keywords') and enumerates the content scope (facts, decisions, lessons, procedures, warnings, shared general know-how), which lets an agent separate it from siblings like 'warnings' or 'brief' without opening 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?

Gives four concrete trigger conditions: before a first action on a named repo/service/cluster/ticket, before proposing a design or fix, after an error before retrying, and when the user references past work. That is unusually actionable, but it never states when not to use it or names an alternative tool for overlapping cases.

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