Skip to main content
Glama
ClickHouse Loom

ClickHouse Loom

Official

loom_blacklist_add

Idempotent

Add a blacklist pattern to block future memory writes matching it, and optionally sweep existing matching records.

Instructions

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.

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": {
      "pattern": "<pattern>"
    },
    "name": "loom_blacklist_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNonamespace
sweepNo
reasonNo
patternYes
namespaceNo
created_byNo
pattern_typeNosubstring

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only give readOnly=false, idempotent=true, destructive=false; the description adds materially more: sweep tombstones existing matching rows including other writers' rows, is capped, and can return `swept_truncated` or a non-empty `sweep_error`. It also discloses the elevated privileges required for org and global scope, which annotations do not carry.

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?

Labeled WHAT/WHEN/WHEN NOT/ARGS sections are front-loaded and every line carries operational content. Density occasionally tips into compression — 'Refused to a token bounded to one user' is awkward phrasing that takes a beat to parse — but nothing is 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?

For a 7-parameter mutation with no output schema, it covers prerequisites, alternatives, sweep side effects, and even names two response fields the agent must inspect. The remaining gap is the undocumented `namespace` and `created_by` parameters, which matter for scoping the block but are never mentioned in prose.

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 must supply meaning, and it does for five of seven parameters — including the operator semantics of pattern_type (substring | regex) and the privilege implications of each scope enum value. It leaves `namespace` and `created_by` unexplained, so it does not fully compensate for the coverage gap.

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-and-effect statement: every later memory write in the pattern's scope whose value matches `pattern` is refused. It immediately names the sibling it is not (loom_memory_delete for one saved fact, loom_memory_apply action=delete for many), so the agent can distinguish forward-looking blocking from deletion without opening any schema.

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 an explicit WHEN ('never remember X'), a WHEN NOT routing to two named alternatives, and a narrow condition for the risky `sweep=true` path ('only when the user also asks to forget what is already saved'). It also tells the agent how to react to incomplete sweeps, which is usage guidance for the follow-up turn, not just the call.

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