Skip to main content
Glama

Stash — Shared AI Memory

Show recent memories

recent
Read-onlyIdempotent

Returns the most recently written memory entries in order. Call this at the end of every session — review what was written, spot gaps, and write anything missing before the session closes. A session that ends without a recent() check is a session that may have lost knowledge. Also useful mid-session to track what's been captured so far.

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

Input Schema

NameRequiredDescriptionDefault
pathNoOptional namespace path to scope results. Defaults to all namespaces.
limitNoNumber of entries to return. Default 20, max 100.
cursorNoWith removed: true, the next_cursor from the previous page.
removedNoOwners only in a shared brain. If true, lists removed entries instead, newest removal first, with who removed them: recent({removed: true}). Restore one with restore. Entries of a removed namespace cannot be restored and are not listed.
namespaceNoAlias for 'path'.

Output Schema

NameRequiredDescriptionDefault
entriesYes
next_cursorNo
next_actionsNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.6/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 a closed world, so the safety profile is covered. The description adds the ordering guarantee but nothing about result shape, pagination behavior, or the removed/restore mode — that detail lives in the schema, not the prose. The motivational framing ('a session that may have lost knowledge') conveys urgency rather than additional behavior.

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 purpose is front-loaded, which is good, but the remainder repeats 'session' three times and leans on fear-based pressure that takes space without adding information. The useful content could be stated in half the length.

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?

With a full output schema and rich annotations, the description only needs to cover purpose and timing, and it does so adequately. The main gap is routing guidance relative to history/ls/grep and any note on paging, which is handled in-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%, and every parameter — path, limit, cursor, removed, namespace — is documented in-schema, including the removed/restore workflow. The description adds no parameter meaning beyond that, so the baseline of 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?

The first sentence gives a specific verb and resource with ordering semantics: 'Returns the most recently written memory entries in order.' That is enough for an agent to know what the tool fetches, but it never contrasts with near-siblings like history, dump, ls, or grep, so the boundary is left to inference.

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 explicit timing guidance — call at the end of every session, and optionally mid-session — which is concrete and actionable. It stops short of naming when NOT to use it or which sibling to pick instead (e.g., history for older entries, grep for lookup), so it is clear context without exclusions.

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