Skip to main content
Glama
ClickHouse Loom

ClickHouse Loom

Official

loom_search

Read-onlyIdempotent

Search all Loom content—memory, profile, knowledge, conversations, issues, pull requests, and code docs—in one call to answer questions about preferences, decisions, or prior discussions.

Instructions

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.

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": {
      "query": "<query>"
    },
    "name": "loom_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
liveNoSearch the asker's connected sources without storing results; disabled by default.
pageNoA `memory.next_page` handle from a previous loom_search response: serves the next slice of that same ranked list without searching again. Leave empty for a new question.
tagsNoFilter memory and knowledge by ANY supplied tag; profile, conversations and tracker search ignore tags. Coding rows carry `project:<folder>` and `repo:<id>` (the id in the session primer).
queryYes
top_kNo
bodiesNoMemory: excerpt (default, 200 chars), full (stored 1,200-char clip), unit (whole values ranked within body_budget_tokens), or none (keys and scores). More via loom_memory_get.excerpt
recipeNoOptional retrieval profile. Empty uses Loom's default; fast is cheapest, quality widens hybrid recall, verbatim/code favor lexical matches, temporal and graph specialize retrieval.
explainNoAppend a `why:` note per memory hit naming the ranking terms that placed it (key match, date proximity, entity, plane gate, …) and the server's provenance note.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.3.0
    • changedInput schema / properties / bodies / description
      Previous value: -"How much of each memory body to return: excerpt (the default: 200 chars, a decision or constraint as stored), full (the 1,200-char stored clip), unit (whole stored values by rank until body_budget_tokens), or none (keys and scores only). Fetch the rest of an excerpt with loom_memory_get."New value: +"Memory: excerpt (default, 200 chars), full (stored 1,200-char clip), unit (whole values ranked within body_budget_tokens), or none (keys and scores). More via loom_memory_get."
    • addedInput schema / properties / live
      Added value: +{
      +  "description": "Search the asker's connected sources without storing results; disabled by default.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / tags / description
      Previous value: -"Keep only rows carrying ANY of these tags. A coding session's rows carry `project:<folder>` and `repo:<id>` (the id the session primer names); pass the repo tag to stay within this repository."New value: +"Filter memory and knowledge by ANY supplied tag; profile, conversations and tracker search ignore tags. Coding rows carry `project:<folder>` and `repo:<id>` (the id in the session primer)."
  2. Changed1 schema field changedv1.2.0
    • changedInput schema / properties / bodies / description
      Previous value: -"How much of each memory body to return: excerpt (the default: 200 chars, a decision or constraint as stored; fetch the rest with memory.get), full (the 1,200-char stored clip), unit (whole stored values by rank until body_budget_tokens), or none (keys and scores only)."New value: +"How much of each memory body to return: excerpt (the default: 200 chars, a decision or constraint as stored), full (the 1,200-char stored clip), unit (whole stored values by rank until body_budget_tokens), or none (keys and scores only). Fetch the rest of an excerpt with loom_memory_get."
  3. First observedv1.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already establish readOnly/idempotent/non-destructive, and the description adds real behavior beyond them: namespace and tracker selection happen server-side with no argument, tags are ignored by profile/conversation/tracker search, defect reports under a code scope get a duplicate verdict, and next_page steering controls the read loop. The only notable omission is any statement about cost, latency, or result-set size limits across the non-memory planes.

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?

Purpose is front-loaded and the bolded sub-headers (One call per question, Paging) make it scannable, with the prohibition at the end. It is on the long side and repeats paging guidance already present in the page and bodies parameter descriptions, but nearly every sentence carries a rule the agent would otherwise get wrong.

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 tool with no output schema, the description does the heavy lifting on return shape (memory.candidates_total, memory.results, memory.next_page) and the paging loop. It stops short of describing what the profile, knowledge, conversation, and tracker planes return, so an agent still has to infer those response keys at runtime.

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 75%, so the baseline is 3, but the description adds meaning the schema does not: tags apply only to memory and knowledge (profile, conversations, tracker rows ignore them) and carry project:/repo: conventions, and page is framed as a handle that re-reads the same ranked list rather than re-searching. top_k and live receive no treatment in the description, which keeps it below a 5.

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 opening sentence names a specific verb (unified search) and enumerates the exact planes searched (memory, profile, knowledge, conversations, issues/PRs, plus repo docs/decisions under code scope). It positions itself against siblings directly ('This is THE search tool') and points to loom_memory_get for full bodies, so an agent can distinguish it from the memory CRUD tools without reading their schemas.

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?

Explicit positive trigger ('call it before answering any what do I / what did we decide / have we discussed X question') and explicit exclusions ('Do NOT call for general knowledge, arithmetic, or code/syntax help'). It also specifies the fall-through behavior (native memory, not 'nothing in Loom') and the one-call-per-question / re-call-on-new-question rules, leaving little to inference.

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