Skip to main content
Glama
ClickHouse Loom

ClickHouse Loom

Official

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Loom-first mode active for this conversation.

Prefer relevant available Loom capabilities for saved knowledge, documents, code, issues, tasks, records and other workflows. Use a listed tool when it fits. Otherwise discover with loom_op (op="help", query="<goal>"), then invoke with op and arguments; never invent an unlisted tool name. Reuse sufficient context; make only calls needed for the task. Writes need user intent and permission.

1. Task context. With a default memory namespace, call loom_context_pack first with the task as query, for the memories, decisions and procedures that bear on it in one bounded bundle. Skip it when a Loom hook already put Loom's context in this session. For one fact, rule 2's search alone is enough.

2. Recall lookup order. When I ask about preferences, decisions, family/relationships, work, bills, contracts, documents I've uploaded, or 'what is X' / 'what do I know about Y': a. Call loom_search once. It searches memory, profile, knowledge (your namespaces' documents and the collections you can read), and conversations server-side in one round trip. collection.list (via loom_op) names those collections. b. If it returns nothing relevant, fall through to native memory / past-conversation context — don't surface 'not in Loom' as a final answer.

3. Save. On any remember/save/store intent, call loom_memory_set. Loom persists across Claude Desktop, Claude Code, Cursor, and any other AI tool the user runs.

4. Shape. loom_memory_set takes one plain-text claim per readable key (<scope>/<kind>/<id>): send text or the object, never json.dumps twice or base64; a document or anything over ~2 KB goes to knowledge.add (via loom_op); leases and pointers go to working_memory.set (via loom_op); a revision rewrites the same key. A document for a shared collection (col-…) goes to knowledge.add with the collection's name as namespace.

5. Defaults. My default Loom namespace is local — use it unless I explicitly name another. Don't ask which namespace; trust the default.

6. Native memory. Use as fallback when Loom returns nothing, or as primary store for Claude-only ephemeral scratchpad. For anything cross-tool or shared with teammates, write to Loom.

7. Using Loom. mentor.guide (via loom_op) returns how to use Loom: where each kind of state goes and how to read what comes back (part: "reference" lists every plane).

Default Loom workspace: namespace=local, agent=claude-desktop. The server fills these in automatically when you omit them — call this tool with ONLY the action-specific args (e.g. query, memory_key, value) and the defaults will be applied. Don't ask the user which namespace; the server knows.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
loom_memory_getA

WHAT: Fetch one memory by exact memory_key. WHEN: The user names a key explicitly ('what is foo_bar in Loom?', 'show me the value of user_employer'). The response shape includes found: true/false + value. WHEN NOT: Don't call for natural-language recall — that's loom_search. On found: false, fall through to loom_search; the key might have a slightly different name. ARGS: Just the memory_key. Server fills the identity tuple. fields: [value, tags, status, …] returns only those output fields (plus found) when the whole row is not needed. follow: true serves the live canonical of a duplicate row (resolved_from = the key asked for, canonical_key = the key served).

loom_memory_setA

Save a fact to Loom — shared across every AI tool the user runs; native memory is the Claude-only scratchpad.

Call this proactively whenever the user states a personal fact, decision, preference, or current state — even without 'remember' or 'save'. Declarative statements ARE save triggers: 'my X is Y', 'I prefer X over Y', 'we decided X', 'we're at X', 'I deploy on X' — one call per fact.

Don't search before saving. A stated fact is a write; the server dedups. Revision policy: if a read this session returned the key of a fact that has now changed or got more precise, update it under that same key with loom_memory_update — never save a second copy and never delete + re-save. A fact about a new subject or scope gets its own memory_key (include the project / scope token in the key).

Other writes: loom_memory_pin guards a fact from later conflicting writes, loom_memory_lock from change or deletion; loom_memory_apply changes many.

Auto-tag scope words: billing → tags=['billing']. For a fact about the primer's repository, add its repo:<id> tag; omit that tag for unrelated facts.

Do NOT save questions, code help, world knowledge, acknowledgements, hypotheticals or your own echoes.

Writes land in ONE namespace (your home); pass namespace=<name> only to write elsewhere. Don't override memory_type (defaults semantic); use tags for classification. Cite the response's namespace and memory_key in your confirmation; conflict_verdict, peers and next say what the store held (dry_run=true checks without writing). value is stored verbatim; never base64 (see advisories).

A fact with a natural lifetime gets one at write time. A deadline, a temporary state ('on call this week'), a rotating value: pass ttl_seconds AND on_expire (tombstone | demote | anonymize) in the SAME call — the expiry sweep applies it. Without on_expire the row stops being current.

loom_memory_pinA

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.

loom_memory_deleteA

WHAT: Tombstone a memory by key (14-day recovery in the dashboard). The row is found across every agent and session in the namespace; found: false = no live row — tombstoned: false is never success. WHEN: Explicit user request — 'forget that I…', 'delete X in Loom'. WHEN NOT: Not as cleanup or on inferred intent; a wrong value is corrected with loom_memory_update. WHICH REMOVAL: one key is this tool; many saved memories by filter or search is loom_memory_apply with action=delete; refusing later writes on a topic is loom_blacklist_add; every memory of an agent or user is memory.clear (via loom_op), for an admin; a user's request to erase all their data is erasure.request (via loom_op). ARGS: memory_key. Server fills identity.

loom_memory_lockA

WHAT: Lock one memory against a class of writes. read_only refuses a changed value, a changed expiry and deletion; no_delete lets the value change but refuses tombstone/redact/clear/consolidate-away. Guarded ops answer 423 LOCKED with the reason. Only an admin loosens. WHEN: 'make sure this never changes', 'freeze the deploy window', 'this must not be deleted / forgotten', 'protect this fact', 'legal hold on X', 'keep this exactly as is'. WHEN NOT: Keeping a fact ahead of later conflicting writes is loom_memory_pin; sharing it is memory.promote (via loom_op). Never lock on inferred intent. ARGS: memory_key, mode (read_only | no_delete), reason (required), optional until / ttl_seconds. Server fills identity.

loom_memory_applyA

WHAT: One change over many EXISTING memories, previewed first; it never creates one (save facts with loom_memory_set, one per fact). target names exactly one of keys | filter (tags_any/tags_all, memory_type, key_prefix, created_before/after, confidence_lte, source_trace) | search {query}; limit is required for filter/search; action is delete | expire | lock | label | demote with its block (expire {ttl_seconds|until, on_expire}, lock {mode}, label {tags, mode add|replace|remove}, demote {confidence_factor | confidence_delta}); reason is required. dry_run defaults to TRUE and lists every row it would touch (would_apply / refused); call again with dry_run=false to write. A locked row comes back as status 'refused', never an error. WHEN: anything that names a set rather than one key — 'forget everything about the Q3 migration', 'these are getting stale, lower their confidence', 'tag every runbook as ops', 'lock everything I saved about the incident', 'expire the meeting notes in 30 days'. WHEN NOT: One key is loom_memory_delete, loom_memory_update or loom_memory_lock; every memory of an agent or user is memory.clear (via loom_op). Never skip the dry run when the user has not seen the list.

loom_memory_updateA

Update a saved fact by memory_key: the operation for "the fact changed or got more specific".

WHEN: a read (loom_memory_get or loom_search) returned this key and the user now states a new value, a correction, or a more precise version of it — 'the deploy day moved to Thursday', 'the budget is actually 40k'. It keeps the row's tags, confidence, expiry, lock and history; loom_memory_set would write a new version blind. Revision policy: if a read this session returned the key of a fact that has now changed or got more precise, update it under that same key with loom_memory_update — never save a second copy and never delete + re-save. A fact about a new subject or scope gets its own memory_key (include the project / scope token in the key). Do NOT use it for a genuinely new fact — call loom_memory_set.

Resolves the key across the namespace; pass agent/user_id/session_id only to narrow when the key is live under several writers (409 AMBIGUOUS_KEY lists them). updated=false with reason=not_found means the key has no live row — save it with loom_memory_set instead. Pass if_match_sha256 from the read for a no-clobber update. Given a memory_id rather than a key, call memory.update_by_id (via loom_op).

loom_memory_historyA

WHAT: Every recorded version of one memory_key, newest first, tombstoned and redacted versions included; empty when the key was never written. WHEN: 'what did I say about X before', 'when did this change', or what a key held earlier. WHEN NOT: The current value alone is loom_memory_get. ARGS: memory_key; optional limit (default 50).

loom_context_packA

Task context: call first with a default memory namespace, unless a Loom hook already put Loom's context in this session. Pass the task as query for memories, decisions, procedures, working memory and the profile; include_knowledge / include_conversations add docs and chats. include_runs=true lists recent sessions and runs (goal, outcome, tool calls, files) — shortlist there before opening one with memory.evidence (via loom_op) or memory.digests (via loom_op). For one fact, prefer loom_search; for activation only, loom_activate.

loom_blacklist_addA

WHAT: Every later memory write in the pattern's scope (this namespace by default) whose value matches pattern is refused. Refused to a token bounded to one user: a pattern refuses every user's writes. WHEN: An explicit 'never remember X' or 'don't store anything about Y'. Pass sweep=true only when the user also asks to forget what is already saved: it tombstones the matching rows up to the sweep cap, other writers' too. swept_truncated: true or a non-empty sweep_error means it did not finish: tell the user, and do not add the pattern again. WHEN NOT: Forgetting one saved fact is loom_memory_delete; many, loom_memory_apply with action=delete. ARGS: pattern; optional pattern_type (substring | regex); scope: namespace (default), org (needs org admin) or global (needs platform admin); reason; sweep.

loom_opA

Run a Loom op by its dotted name: {"op": "help", "query": ""} finds ops and arguments; then {"op": "memory.related", "arguments": {"memory_key": "deploy_day"}}. "(via loom_op)" routes here. Also: the source turns behind a memory (memory.evidence); session digests (memory.digests). Prefer a fitting listed tool; identity and namespace default as usual.

loom_searchA

Unified search across the user's Loom content — memory (facts, preferences, decisions), profile (always-loaded persona sections), knowledge (uploaded documents), past conversations and readable issues and pull requests — one round-trip; under a code scope, also the repository's docs and decisions. This is THE search tool: call it before answering any 'what do I / what did we decide / have we discussed X' question.

One call per question. If the answer is in the response, use it; if it is empty, fall through to native memory rather than declaring 'nothing in Loom'. Re-call on a NEW question, never on the same question in the same turn.

Paging. memory.candidates_total is how many memories matched; memory.results is the top of that list. When memory.next_page is set AND the answer is not in hand (a list, a count), call again with page = memory.next_page to read the next slice. Stop when next_page is empty or the answer is complete.

Memory namespaces and readable trackers are selected server-side; no namespace argument. Under a code scope, defect reports also receive a duplicate verdict. Do NOT call for general knowledge, arithmetic, or code/syntax help.

loom_activateA

Loom activation — call this tool IMMEDIATELY, without any other tool calls or clarifying questions, whenever the user says any of:

  • 'use loom'

  • 'activate loom'

  • 'switch to loom' / 'switch to loom mode'

  • 'loom on' / 'loom first' / 'enable loom'

  • 'use loom from now on'

Do NOT call tools/list or browse other Loom tools first. Do NOT ask 'what would you like to look up?' These phrasings are activation triggers, not search queries. Take no arguments.

The response is a primer with the user's always-loaded context (persona / preferences / goals) inlined as a <block> fragment, plus instructions for routing subsequent memory and recall calls through Loom. Internalize the primer and apply it for the rest of the conversation: adopt the tone implied by the persona block, route future memory ops to Loom, do not re-fetch the primer.

Calling this is a one-shot setup gesture for the conversation. Subsequent user messages should be answered using the primer's guidance — not by calling this tool again.

Prompts

Interactive templates invoked by user choice

NameDescription
loomActivate Loom for this conversation. Loads your persona block + sets memory/recall to route through Loom. Pick this once at the start of a new chat — same effect as typing 'use loom' but discoverable from the slash-command picker.

Resources

Contextual data attached and managed by the client

NameDescription
Loom primerYour always-loaded context — persona / preferences / goals — plus how to route memory and recall through Loom. Read at the start of a conversation.

TDQS

A4.1/5.0

Scored across 13 tools

Disambiguation4/5

The WHEN/WHEN NOT blocks do real work separating the near-neighbours (set vs pin vs update vs apply vs blacklist_add, and get vs history vs search vs context_pack), so an agent can usually pick correctly. Residual friction comes from the number of retrieval entry points (loom_context_pack, loom_search, loom_activate, loom_memory_get, loom_op) and from loom_op being a universal catch-all that could siphon traffic from the dedicated tools.

Naming Consistency4/5

All snake_case with a uniform `loom_` prefix, and the memory family follows a clean noun_verb pattern (loom_memory_set/get/update/delete/lock/pin/apply/history). Minor deviation: non-memory tools switch to verb_noun or plain nouns (loom_search, loom_activate, loom_context_pack, loom_op), which is readable but not one single grammar.

Tool Count4/5

13 tools is right in the well-scoped band for a memory/knowledge store with a real lifecycle (CRUD, bulk ops, protection, blacklist, search, activation). A couple are arguably niche (loom_memory_history, and loom_op as an escape hatch duplicating reachable functionality), but nothing feels padded.

Completeness5/5

Full lifecycle is covered: create (set/pin), read (get/search/context_pack), update, delete, bulk mutate (apply), versioning (history), protection (lock/pin/blacklist), plus a generic loom_op escape hatch for related-evidence, digests, clear and erasure. Namespace/scope and identity are handled server-side, so there are no obvious dead ends.

Maintenance

ActivityActive
ResponsivenessUsually handled