Skip to main content
Glama

consolidate

Copies new source lines, extracts candidate facts, and integrates pending facts into the knowledge graph, resolving domains, entities, duplicates, and contradictions.

Instructions

Copy, extract, and integrate. Copies new lines from named sources, extracts candidate facts from them, and integrates pending facts: domains, entities, duplicates, contradictions, the knowledge graph.

Call this after capturing several facts, at a topic change, or before the conversation ends.

Extract is capped at 50 of the oldest unexamined lines per call; events_remaining in the result says how many wait. Pass all: true to take the whole backlog in one call, or limit: N for the oldest N.

When meaning search is on, integrate also embeds currently-true facts that have no vector for the working model. A result with facts_integrated: 0 can still have written vectors — read embedding (embedded, missing, error). Call get_stats for store-wide coverage.

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": "consolidate"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoExtract the whole backlog this call instead of the capped oldest batch
limitNoExtract at most this many of the oldest unexamined lines

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.34.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / limit / maximum
      Added value: +9007199254740991
  2. First observedv0.30.1

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the load and does so: it discloses the 50-line extract cap, the events_remaining backlog signal, the all/limit overrides, and the non-obvious side effect that facts_integrated: 0 can still mean vectors were written. What is missing is any statement of cost, latency, or failure behavior for a multi-stage mutation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and the paragraphs are organized by concern (what, when, caps, embedding), but the opening fragment "Copy, extract, and integrate" is redundant with the sentence that follows, and the final paragraph is a dense run-on that packs three ideas into one sentence.

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?

There is no output schema, so the description must explain return values, and it does name events_remaining, facts_integrated, and the embedding object. For a multi-stage mutation tool it is largely complete, though it omits error/partial-failure semantics and what integration does with detected contradictions.

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 100%, so the baseline is 3, but the description adds meaning the schema lacks: the default 50-line cap that both parameters modify, and the relationship between all: true and limit: N (whole backlog vs oldest N). It does not clarify what happens if both are supplied.

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 concrete operations (copy new lines, extract candidate facts, integrate pending facts into domains/entities/graph) and the resource they act on, so the agent knows this is a pipeline/consolidation step rather than a simple read. It does not explicitly contrast with a sibling like capture_fact, but the compound scope is stated well enough to be distinguishable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Call this after capturing several facts, at a topic change, or before the conversation ends" gives explicit trigger conditions, and get_stats is named for store-wide coverage. There is no explicit when-not-to-use guidance or statement of prerequisites, which keeps it short of a 5.

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