Skip to main content
Glama
ClickHouse Loom

ClickHouse Loom

Official

loom_memory_pin

Idempotent

Save a standing fact as a pinned memory so later conflicting writes cannot evict it; pinned rows rank ahead of unpinned ones in file context.

Instructions

WHAT: Save a standing fact and protect it. A pinned memory is never evicted by a later conflicting write: the newer fact is stored beside it and answers 409 PINNED_CONFLICT, and pinned rows rank ahead of unpinned ones in file context. Same arguments as loom_memory_set; pinned is forced on. WHEN: The user marks a fact as permanent or asks for it to be kept explicitly: 'always remember X', 'never forget this', 'pin this', a hard constraint stated as standing ('I am allergic to penicillin', 'deploys freeze on Fridays', 'the prod DB is read-only'). WHEN NOT: An ordinary fact, preference or state is loom_memory_set, the default for almost every save; a fact that must not change or be deleted at all is loom_memory_lock; a topic never to be saved is loom_blacklist_add (refused to a token bounded to one user). ARGS: memory_key, value; optional tags, ttl_seconds, on_expire. Server fills identity.

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": {
      "memory_key": "<memory_key>",
      "value": "<value>"
    },
    "name": "loom_memory_pin"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo
filesNo
valueYes
run_idNo
dry_runNo
entitiesNo
proposedNo
valid_atNo
valid_toNo
namespaceNo
on_expireNo
confidenceNo
memory_keyYes
memory_typeNosemantic
sensitivityNo
ttl_secondsNo
clear_expiryNo
expire_reasonNo
if_match_sha256No
source_resource_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.2/5.0
Behavior3/5

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

The annotations already declare a non-read-only, idempotent, non-destructive write, and the description meaningfully extends this by explaining the conflict model (409 PINNED_CONFLICT, newer fact stored beside the pin) and the context-ranking effect. It does not cover the effects of the many other optional fields (dry_run, proposed, sensitivity, ttl/expiry interplay), so behavior is only partially disclosed.

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?

Front-loaded WHAT/WHEN/WHEN NOT/ARGS structure, with the single most decision-relevant constraint (pinned rows win and conflicts 409) in the first sentence. Dense but every clause carries decision value; 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?

Strong on the routing and conflict semantics that matter for choosing this tool over its siblings, and there is no output schema to explain. The gap is the large optional surface area of a 20-parameter write tool, which the description largely delegates elsewhere.

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 0% across 20 parameters, so the description must carry the load. It names only memory_key, value, and the optional tags/ttl_seconds/on_expire, then defers the rest with 'Same arguments as loom_memory_set' — useful but leaves 15 parameters (namespace, if_match_sha256, valid_at/valid_to, sensitivity, confidence, etc.) with no meaning anywhere.

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?

States a specific verb and resource ('Save a standing fact and protect it') plus the distinguishing behavior — a pin is never evicted and wins context ranking. It is clearly separable from loom_memory_set and loom_memory_lock by reading the description alone.

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?

Has explicit WHEN and WHEN NOT sections that name the alternatives and the conditions selecting them: ordinary saves go to loom_memory_set, immutable facts to loom_memory_lock, never-save topics to loom_blacklist_add. It even gives concrete trigger phrases and examples.

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