Skip to main content
Glama

think

Run incremental cognitive maintenance to consolidate similar memories and detect contradictions in small batches. Call regularly to gradually maintain your database without blockages.

Instructions

Run incremental cognitive maintenance — processes a small batch per call.

DESIGNED TO BE CALLED OFTEN: Each call processes ~5 memories (configurable). Running regularly (e.g. at end of conversation) gradually maintains the entire database without blocking. Safe to call frequently.

MODES:

  • Default: incremental think() — consolidation + conflict scan + (optional) pattern mining on a small batch.

  • maintenance_cycle=True: run the v0.9.0 autonomous-hygiene "sleep cycle" — think + burn-down-conflicts + prune-triggers + recalibrate-importance + backfill-entities + auto-relate (+ optional split_oversized + repair_artifacts).

  • last_cycle_only=True: just fetch the last persisted maintenance-cycle summary (read-only, no work performed).

Args: run_consolidation: Merge similar memories (default on). run_conflict_scan: Detect contradictions (default on). run_pattern_mining: Mine cross-domain patterns (default off, slow). consolidation_time_window_days: Only consolidate memories within this window (default 7 days). consolidation_limit: Batch size — max memories to process per call (default 5). Keep small for fast returns. maintenance_cycle: Run the full autonomous hygiene cycle instead. last_cycle_only: Just fetch the last cycle summary (read-only). dry_run: For maintenance_cycle — preview without persisting changes. burn_down_conflicts / prune_triggers_too / max_pending_triggers / recalibrate_importance / backfill_entities / auto_relate_in_cycle / max_auto_relate_edges / split_oversized / split_min_chars / repair_artifacts: Maintenance-cycle knobs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNo
last_cycle_onlyNo
split_min_charsNo
split_oversizedNo
repair_artifactsNo
backfill_entitiesNo
maintenance_cycleNo
run_conflict_scanNo
run_consolidationNo
prune_triggers_tooNo
run_pattern_miningNo
burn_down_conflictsNo
consolidation_limitNo
auto_relate_in_cycleNo
max_pending_triggersNo
max_auto_relate_edgesNo
recalibrate_importanceNo
consolidation_time_window_daysNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

The description transparently discloses behavior: it processes memory consolidation, conflict scan, pattern mining (optional), and explains the maintenance cycle in detail. It notes that the tool modifies state (non-read-only) and is safe for frequent use. This adds significant context beyond the minimal annotations (readOnlyHint=false, etc.), with no contradictions.

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 description is well-structured with sections (DESIGNED TO BE CALLED OFTEN, MODES, Args) and front-loads key information. However, it is relatively lengthy with extensive parameter details in paragraph form. While every sentence adds value, a more compact list or table could improve clarity for quick scanning.

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 the tool's complexity (18 parameters, multiple modes, no output schema shown), the description is comprehensive. It covers purpose, usage frequency, mode selection, parameter explanations, and behavioral effects. The presence of an output schema (not shown) means return values are not required in the description. All necessary context is provided for an agent to select and invoke the tool correctly.

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?

The input schema has 18 parameters with only titles and defaults (0% description coverage). The description compensates by listing and explaining each parameter's purpose (e.g., 'run_consolidation: Merge similar memories', 'consolidation_limit: Batch size'). While thorough, it does not provide exact syntax or constraints beyond the schema, but it adds meaningful semantics for an agent.

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 description clearly states the tool's purpose: 'Run incremental cognitive maintenance — processes a small batch per call.' It identifies the tool as a maintenance/consolidation tool, distinguishing it from sibling tools like 'remember', 'recall', and 'forget' which are focused on individual memory operations. The description also outlines different modes (default, maintenance_cycle, last_cycle_only), further clarifying its role.

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?

The description explicitly advises when to use the tool: 'DESIGNED TO BE CALLED OFTEN: Each call processes ~5 memories... Running regularly (e.g. at end of conversation) gradually maintains the entire database without blocking. Safe to call frequently.' It also explains when to use alternative modes like maintenance_cycle and last_cycle_only, providing clear context for invocation.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yantrikos/yantrikdb-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server