Skip to main content
Glama

Stash — Shared AI Memory

Pin memory for session start

pin
DestructiveIdempotent

Owner only. Call only when the user explicitly approves pinning the memory's current text at the named namespace. Copies that text so init can return it at this path and its descendants. Pinning the same memory at the same path refreshes the snapshot; repeating with identical text has no effect. Only the active brain's own memories and namespaces are eligible. All active pin texts together can contain at most 4000 Unicode characters per brain. Shared-brain pins are team guidance subject to the shared-brain policy.

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": {
      "entry_uuid": "<entry_uuid>",
      "path": "<path>"
    },
    "name": "pin"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesExisting namespace at which to apply the pin. Pass / explicitly for the root.
entry_uuidYesUUID of the live memory whose current text you want to pin.

Output Schema

NameRequiredDescriptionDefault
pathYes
pinnedYes
entry_uuidYes
next_actionsNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations it discloses authorization requirements ('Owner only'), quota ('at most 4000 Unicode characters per brain' across all active pins), and precise idempotency semantics ('Pinning the same memory at the same path refreshes the snapshot; repeating with identical text has no effect') that go well past idempotentHint=true. It also clarifies the overwrite behavior implied by destructiveHint=true and notes a policy constraint for shared brains.

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?

The approval gate is front-loaded and most sentences carry distinct, non-redundant facts about quota, idempotency, and scope. The closing sentence, 'Shared-brain pins are team guidance subject to the shared-brain policy,' gestures at an unnamed external policy without explaining its practical consequence.

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 an output schema present, the description needn't explain return values, and it covers auth, quota, idempotency, and path scoping for a two-parameter mutation. The only soft spot is the unelaborated reference to the shared-brain policy, which leaves an agent unsure what that constraint actually imposes.

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, but the description adds meaning the schema lacks: that a pin at a path applies to that path and its descendants, which is a scoping semantic not present in the parameter definitions. The 'current text' framing for entry_uuid largely duplicates the schema's own wording.

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 specific verb and resource ('pin... the memory's current text at the named namespace') and explains the mechanism ('Copies that text so init can return it at this path and its descendants'), which lets an agent understand the effect without opening a schema. It does not explicitly name or contrast with the closest sibling, unpin, so it falls 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?

It gives an explicit precondition ('Call only when the user explicitly approves pinning') and an eligibility constraint ('Only the active brain's own memories and namespaces are eligible'), which is clear when-to-use guidance. It never states when not to use it or names an alternative tool (e.g. unpin or update) for adjacent needs.

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