Skip to main content
Glama
BrunoBanana

memory-as-history

by BrunoBanana

pin

Mark a consolidated memory as an anchor to keep it always surfaced on recall, independent of recency or relevance. Requires a reason and prior consolidation.

Instructions

Mark a memory as an anchor: a 'site of memory' that is always surfaced on recall and never competes with ordinary memories on recency or relevance. reason is required — anchors are declared, not inferred.

The memory must already be consolidated (call promote() first) — anchors are built on things that have already become history, not on passing remarks. If the number of anchors exceeds a soft limit, the result includes a warning.

If the memory is flagged security_sensitive, pinning additionally requires at least one corroborate() from a source distinct from the memory's own source — otherwise this raises PermissionError. This is a source-criticism safeguard: content that asserts its own identity/ permission importance once (e.g. via prompt injection) should not be able to promote itself straight into the anchor set unverified.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonYes
memory_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden, and it is thorough: it explains the anchor's recall behavior, the warning on exceeding a soft limit, the PermissionError if corroboration is missing, and the prompt-injection rationale. No contradiction with annotations exists.

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?

The description is longer than average but every section adds needed operational context: purpose, precondition, warning, and security requirement. It is front-loaded and logically organized, with no filler.

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?

Covers what the tool does, when it can be called, required dependencies, potential warnings, and an error condition. It does not specify the success return shape or quantify the 'soft limit', but this is a minor gap given no output schema exists.

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 description coverage is 0%, so the description compensates by explaining reason as a required declaration rather than an inference. memory_id is only minimally described, but its meaning as the identifier of an existing consolidated memory is clear from context.

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?

Clearly states a specific operation ('Mark a memory as an anchor'), identifies the resource (a consolidated memory), and explains the behavioral effect (always surfaced on recall, not ranked by recency or relevance). This differentiates it from generic recall/remember tools.

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?

Gives explicit preconditions: the memory must already be consolidated and promote() called first, and passing remarks are explicitly excluded. It also specifies the security-sensitive condition requiring corroborate(). It does not, however, name sibling alternatives such as unpin or flag_sensitive, so some routing is left to the agent.

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