Skip to main content
Glama

Stash — Shared AI Memory

Start a session

init
Read-onlyIdempotent

Call first in every session. Use Stash as your long-term memory and ground new work in similar past projects before choosing an approach. Pass context to recall relevant memories across namespaces. Request the stash-memory skill with include_skill. Returns your active brain and role, plan, usage, memory counts, and pinned_instructions from the root through the given path. For conflicting preferences the more specific scope takes precedence. Without a path, only root pins are included. Each pin names its scope path and memory UUID. Shared-brain pins are owner-selected team guidance subject to the shared-brain policy.

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

Input Schema

NameRequiredDescriptionDefault
pathNoExisting namespace in the active brain. Defaults to / and scopes inherited pins only. An unknown path returns an error.
contextNoOptional. Describe the task in one line to recall relevant memories.
context_limitNoHow many relevant memories to return with context. Default 5. Increase to get broader orientation.
include_skillNoReturn the full stash-memory SKILL.md in stash_memory_skill when your client only supports tools.

Output Schema

NameRequiredDescriptionDefault
brainNo
usageYes
countsYes
policyNo
messageNo
next_stepsYes
plan_titleYes
next_actionsNo
brain_invitesNo
connection_statusYes
pending_handoversYes
relevant_memoriesNo
brain_invites_moreNo
stash_memory_skillNo
pinned_instructionsNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish readOnly/idempotent/non-destructive/closed-world, so the bar is lower, yet the description still adds real behavior: scope-scoped pin inclusion, the rule that more specific scopes win on conflicting preferences, error behavior for unknown paths, and shared-brain pins being owner-selected team guidance. It does not discuss cost, latency, or limits on returned data, so it is not exhaustive.

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 front-loaded 'call first' instruction is well placed and most sentences carry signal. However, the enumeration of return fields ('active brain and role, plan, usage, memory counts, and pinned_instructions') duplicates the existing output schema, and the shared-brain policy sentence is dense with little actionable instruction.

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 zero-required-parameter session initializer with a full output schema, the description covers triggering, optional inputs, scope inheritance, precedence, and error cases. It omits any mention of context_limit behavior (defaults, cost of raising it), which is minor because the schema documents it. Output shape needs no further explanation given the output schema.

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?

With 100% schema coverage the baseline is 3, but the description goes further by explaining that path scopes inherited pins from root through that path and that a more specific scope overrides broader ones. Context is framed as recalling memories across namespaces, adding intent beyond the schema's 'describe the task in one line'. context_limit is left entirely to the schema.

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 description states a concrete action (call first to start a session) and enumerates what comes back: active brain and role, plan, usage, memory counts, and pinned_instructions. The 'call first in every session' framing makes its triggering role clear. It never contrasts itself with the related sibling whoami, which also reports brain/role, so it stops short of full sibling differentiation.

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?

Explicit timing guidance is given ('Call first in every session', 'ground new work in similar past projects before choosing an approach'), plus conditional guidance for passing context and requesting the skill. The path-omitted case is called out ('Without a path, only root pins are included'). No named alternatives or when-not-to-use case is provided, keeping it below a 5.

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