Skip to main content
Glama

memory_search

Read-onlyIdempotent

Search your long-term memory (facts, decisions, preferences, commitments). Use before answering questions about past context.

Input Schema

NameRequiredDescriptionDefault
queryYesWhat to search for.
minScoreNoMinimum similarity 0-1 (default 0.3).
maxResultsNoMax results (default 5).
memoryTypeNoFilter by memory type (default all).

Output Schema

NameRequiredDescriptionDefault
okYesWhether noticed completed the operation.
dataNoThe operation result when ok is true.
errorNoA human-readable error when ok is false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / maxResults / description
      Previous value: -"Max results."New value: +"Max results (default 5)."
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "data": {
      +      "description": "The operation result when ok is true.",
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "content": {
      +            "type": "string"
      +          },
      +          "createdAt": {
      +            "type": "string"
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "memoryType": {
      +            "type": "string"
      +          },
      +          "similarity": {
      +            "type": "number"
      +          },
      +          "sourceDate": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "content"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "error": {
      +      "description": "A human-readable error when ok is false.",
      +      "type": "string"
      +    },
      +    "ok": {
      +      "description": "Whether noticed completed the operation.",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered by structured data. The description adds only the scope of the memory store and its long-term nature; it says nothing about ranking behavior, despite minScore implying similarity scoring, or about how results are ordered. With an output schema present, return values need not be explained, so this is adequate but thin.

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

Conciseness5/5

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

Two short sentences with zero filler; the resource scope is front-loaded and the usage trigger follows. Every clause earns its place.

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 read-only search tool with a fully documented four-parameter schema, rich annotations and an output schema, the description covers what is searched and when to invoke it. The only remaining gap is disambiguation from memory_get and memory_save, which the description leaves to inference.

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% and every parameter carries a description plus a default, so the schema does the heavy lifting. The description's enumeration of memory content types loosely hints at what memoryType distinguishes (daily vs curated), but never maps that vocabulary to the enum values. Baseline 3 applies.

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 your long-term memory') and enumerates the content types stored there (facts, decisions, preferences, commitments), which goes beyond restating the name. It implicitly distinguishes itself from memory_get and memory_save by being a query-based lookup, though it never names those siblings explicitly.

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?

'Use before answering questions about past context' gives a concrete trigger condition for invocation, which is more than most definitions offer. It stops short of when-not-to-use guidance or of routing the agent to memory_get for direct retrieval versus this similarity search.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources