Skip to main content
Glama

consolidate_tool

Finds and merges semantically similar notes into single consolidated summaries so your knowledge base stays organized. Groups notes by similarity, synthesizes clusters, and marks source notes as consolidated.

Instructions

Find and consolidate clusters of semantically similar notes.

Groups notes with cosine similarity >= threshold, then uses Gemini CLI to synthesise each cluster into one abstract note in 20-areas/consolidated/. Source notes are marked status='consolidated' and deprioritised in context.

Default dry_run=True — inspect clusters before committing.

Args: threshold: Cosine similarity threshold for clustering (default 0.85) dry_run: If True, show clusters without consolidating (default True)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNo
thresholdNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are provided, so the description must carry the behavioral burden. It discloses key effects: source notes get status='consolidated', are deprioritized in context, and the default dry_run=True prevents accidental mutation. It does not mention required permissions, reversibility, or rate limits, but covers the main side effects.

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?

Front-loads the core action, then details the process in a logical flow, and ends with a clear safety note and parameter list. Every sentence adds value without redundancy.

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

Completeness5/5

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

Given 2 parameters, no annotations, and an output schema (which handles return values), the description provides sufficient context: it explains what the tool does, the side effects, the default safety behavior, and parameter meanings. Nothing critical is missing for an agent to invoke it correctly.

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?

Schema description coverage is 0%, so parameters lack structured descriptions. The description compensates by providing defaults and brief semantics for both parameters (threshold as cosine similarity threshold, dry_run as showing clusters without consolidating). This is adequate but not rich; it doesn't explain threshold units or acceptable ranges beyond the default.

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?

States a specific verb+resource (consolidate clusters of semantically similar notes) and details the mechanism (cosine similarity grouping, synthesis via Gemini CLI, output to 20-areas/consolidated/). This clearly distinguishes it from siblings like find_related_notes or search_notes, which merely search rather than merge.

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?

Explicitly notes the default dry_run=True and advises inspecting clusters before committing, which is a clear usage cue. However, it doesn't name alternative tools (e.g., find_related_notes) or state when not to use this tool, leaving some routing ambiguity.

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