Skip to main content
Glama

Stash — Shared AI Memory

Search memory

grep
Read-onlyIdempotent

Search memory semantically. Use this constantly — before answering questions, before writing code, before making decisions, before giving advice. Surgical retrieval from Stash is always cheaper than carrying everything in context: a 200-token grep result replaces pages of conversation history. Results include age_days so you can judge freshness. Scope to a namespace for precision, or search all namespaces for breadth. A result is capped at 40,000 bytes: the last results are left out (truncated:true) and an oversized entry is cut (content_truncated:true; get returns it in full). Memory you don't search is memory you don't have.

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

Input Schema

NameRequiredDescriptionDefault
pathNoOptional namespace path to filter by subtree.
limitNoOptional result limit. Defaults to 10, max 50.
queryYesSemantic search query.
namespaceNoAlias for 'path'.
max_age_daysNoOptional. Exclude memories older than this many days. 0 means no filter.

Output Schema

NameRequiredDescriptionDefault
resultsYes
truncatedNo
next_actionsNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered structurally. The description still adds real behavioral context beyond that: results carry age_days for freshness judgements, a 40,000-byte cap causes trailing results to be dropped (truncated:true), and individual oversized entries are cut (content_truncated:true) and recoverable via `get`. It does not say how ranking or relevance scores work, which keeps it just short of a 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?

Purpose is front-loaded and the ordering (what it is, when to use, cost rationale, result shape, scoping, truncation) is logical. There is some padding — the four-item 'before answering / before writing code / before making decisions / before giving advice' list and the closing aphorism repeat the same point, and the truncation sentence packs two distinct flags together.

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?

With an output schema present, the description need not document return values, yet it voluntarily explains the truncated and content_truncated flags and the age_days field, which are the non-obvious parts. Combined with rich annotations and 100% schema coverage, an agent has everything needed to call this correctly.

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 and the schema already explains query, path/namespace, limit and max_age_days. The description adds intent the schema does not: scoping to a namespace is framed as the precision/breadth choice, which tells an agent why to set `path` rather than just what it is. It does not elaborate on max_age_days beyond the schema's own wording.

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 opening sentence gives a specific verb and resource ('Search memory semantically'), and the description later distinguishes this tool from `get` ('an oversized entry is cut ... get returns it in full'), so an agent can separate it from the full-content retrieval sibling. It also states scope options (single namespace vs all namespaces), which further pins down what the tool does.

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?

It gives explicit when-to-use triggers ('before answering questions, before writing code, before making decisions, before giving advice') and an explicit alternative for the truncated case (use `get` to retrieve an entry in full). It also frames the precision-vs-breadth tradeoff for namespace scoping, 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources