Skip to main content
Glama

memory_primers

Destructive

List and manage primers—frequently recalled thoughts injected into every conversation—with preview-first deletion that removes only the primer record, not the underlying thought.

Instructions

The always-at-hand set — thoughts recalled often enough to be injected into every conversation — and the only tool that reviews or removes them. list answers { items, meta }, delete { item, meta}. Primers are created automatically on the search path, never by this tool; list returns them most-hit first (up to 500); read the thought itself with memory_recall action=get. delete removes the primer record only (the thought and its edges stay) and is preview-first: confirm=true must echo the meta.preview.token back, and a missing, stale or mismatched one needs a fresh preview. Deletion is not permanent: the thought is promoted again on its next recall while its hit count still reaches the threshold.

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": {
      "action": "<action>"
    },
    "name": "memory_primers"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesAction
confirmNoCONSUMED by "delete" (true executes; false/omitted previews). REJECTED for "list".
primer_idNoREQUIRED for "delete". Primer ID. REJECTED for "list".
preview_tokenNoOPTIONAL preview token returned by a prior preview. CONSUMED by "delete" (true executes with token validation; missing/stale fails). REJECTED for "list".

Output Schema

NameRequiredDescriptionDefault
resultYesAction payload (structuredContent.result); JSON mirror of content[].text, except the raw-text config action, whose result is { item: { text }, meta }

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the destructiveHint=true annotation, it discloses that delete only removes the primer record while the thought and its edges survive, that deletion is not permanent because re-promotion happens on the next qualifying recall, and that the flow is preview-first with token validation. It also gives list ordering (most-hit first, capped at 500), which annotations cannot convey.

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?

It is a single dense paragraph with zero filler and strong front-loading of the core identity. The trade-off is scanability: return shapes, creation rules, and the deletion lifecycle are packed together rather than separated into clearly signposted sentences.

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 annotations covering the safety profile, an output schema, and full param coverage, the description still supplies everything an agent needs: what primers are, how they come into existence, how to read the underlying thought, and the exact confirmation contract for deletion.

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 real meaning: confirm=true must echo meta.preview.token, and a missing, stale, or mismatched token requires a fresh preview. That clarifies the coupling between confirm and preview_token beyond the schema's per-field notes.

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 description names the resource precisely (the 'always-at-hand' set of thoughts injected into every conversation) and enumerates both actions, list and delete, with their return shapes. It also explicitly distinguishes itself from memory_recall by pointing there for reading the underlying thought.

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 states when-not-to-use this tool (primers are created automatically on the search path, never here), routes the agent to memory_recall action=get for reading the thought itself, and lays out the mandatory preview-then-confirm sequence for deletion.

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