Skip to main content
Glama
ClickHouse Loom

ClickHouse Loom

Official

loom_context_pack

Read-onlyIdempotent

Loads task-relevant memories, decisions, procedures, docs, chats, and recent runs into one context pack so agents can start or hand off work with the right background.

Instructions

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.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "loom_context_pack"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNotask
queryNoOptional task/question used to select relevant memories and docs.
top_kNo
run_idNo
namespaceNo
situationNoOptional situation description used to match procedures.
read_scopeNonamespace
runs_limitNo
include_runsNo
token_budgetNo
only_sectionsNo
include_chunksNo
include_decisionsNo
include_knowledgeNo
include_conversationsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered without the description. The description adds behavioral context beyond that: what the run listing contains (goal, outcome, tool calls, files), the shortlist-then-open pattern, and that docs and chats are only included on request. It does not explain how token_budget truncates results or what mode/read_scope change at runtime, which keeps it short of a 5.

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?

The call-order constraint is front-loaded and the parameter effects follow in descending importance, with no redundant restatement of the title. It is dense with backticked identifiers and semi-colon chains, which is efficient but slightly harder to parse on first read.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 15-parameter, no-output-schema tool this covers the essential workflow, the returned section families and the sibling routing, which is enough to call it correctly in the common case. It still leaves the agent guessing about mode, read_scope and token_budget behavior — parameters that materially change what comes back — so it is adequate rather than complete.

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?

With 15 parameters and only 13% schema description coverage, the description carries most of the burden, and it does explain query, include_knowledge, include_conversations, include_runs and namespace in behavioral terms. However, mode, read_scope, situation, top_k, runs_limit, token_budget, include_chunks and include_decisions receive no mention, including both enums, so a large share of the interface remains unexplained anywhere.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the concrete content it assembles — memories, decisions, procedures, working memory, profile, plus optional docs and chats — which lets an agent distinguish it from loom_search and loom_activate. The opening fragment 'Task context:' is a terse label rather than a verb+resource statement, so the purpose has to be inferred from the enumeration that follows.

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?

It gives an explicit ordering rule ('call first with a default memory namespace, unless a Loom hook already put Loom's context in this session') and names two alternatives with the conditions that select them: loom_search for one fact, loom_activate for activation only. It also routes a downstream workflow — shortlist runs here, then open one with memory.evidence or memory.digests via loom_op — which is exactly the kind of sequencing guidance an agent needs.

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