Skip to main content
Glama
ClickHouse Loom

ClickHouse Loom

Official

loom_memory_lock

Lock a memory as read-only or no-delete to prevent changes, expiry, deletion, or redaction for legal holds, deploy freezes, and protected facts; only admins can loosen.

Instructions

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.

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>",
      "reason": "<reason>"
    },
    "name": "loom_memory_lock"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoread_only
untilNo
reasonYes
run_idNo
locked_byNo
namespaceNo
memory_keyYes
ttl_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations, it discloses the guarded-op failure mode (423 LOCKED with reason), the precise mutation surfaces each mode blocks (value, expiry, deletion vs tombstone/redact/clear/consolidate-away), and the permission boundary ('only an admin loosens'). What's missing is any statement of what a successful lock returns, which matters since there is no output schema; note destructiveHint=false is consistent with a protective lock operation.

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?

Labeled sections (WHAT/WHEN/WHEN NOT/ARGS) make it scannable, the core action is front-loaded, and the enumerated user phrasings earn their space by enabling intent-based routing. No filler sentences.

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?

For an 8-parameter mutation tool with no output schema, the definition covers purpose, routing, failure semantics, and authority requirements. The remaining gap is success/return behavior (what a lock produces, how it is later identified or released) and the format of the temporal parameters.

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?

With 0% schema description coverage, the description carries the burden well: it explains mode semantics for both enum values, marks reason as required, describes until/ttl_seconds as optional temporal bounds, and dismisses the identity fields ('Server fills identity') so the agent knows not to populate locked_by/run_id/namespace. It does not give a format for 'until' or clarify namespace scoping, leaving minor gaps across 8 params.

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?

Opens with a specific verb+resource and scope: 'Lock one memory against a class of writes,' then defines the two lock classes precisely, immediately distinguishing it from the pin sibling that agents might otherwise confuse it with.

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?

Provides a WHEN block of concrete user phrasings ('make sure this never changes', 'legal hold on X') and a WHEN NOT block that names both the correct alternative (loom_memory_pin for conflicting-write protection, memory.promote via loom_op for sharing) and a hard exclusion ('Never lock on inferred intent').

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