Skip to main content
Glama

brain_sync

Synchronizes Markdown vault files with the SQLite FTS5 index in both directions, hashing changes and removing deleted notes so agent memory searches stay current.

Instructions

Sincronizza bidirezionalmente i file Markdown del vault con l'indice SQLite FTS5 (scansione ricorsiva, rilevamento modifiche via hash, rimozione note eliminate).

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

Input Schema

NameRequiredDescriptionDefault
dry_runNoSe true, calcola le modifiche senza applicarle al database.
vault_pathNoPercorso opzionale della root del vault. Se omesso, viene risolto automaticamente.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It usefully names the irreversible-looking effect (removal of entries for deleted notes) and the hash-based change detection, but it never says whether the sync is safe/idempotent, whether it can drop or corrupt index state on failure, whether it modifies the Markdown files themselves despite 'bidirezionale', or what permissions/access it needs on the vault path.

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?

A single front-loaded sentence led by the verb and resource, with the operational details compressed into a parenthetical. Nothing is repeated and no sentence is wasted.

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 two-parameter, zero-required tool with no output schema, the core operation is conveyed. However, with no annotations at all, the definition leaves gap areas an agent would want before invoking a state-mutating sync: reversibility, failure behavior, and the meaning of 'bidirectional' with respect to the Markdown files.

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 100%, so both `dry_run` and `vault_path` are already documented with their defaults and auto-resolution behavior; the baseline of 3 applies. The description adds no additional meaning to either parameter beyond what the schema states.

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 states a specific verb and resource pair: bidirectional synchronization of vault Markdown files with the SQLite FTS5 index, and it enumerates the mechanics (recursive scan, hash-based change detection, removal of deleted notes). No sibling in the list does index synchronization, so the tool is effectively distinguishable, though the description never explicitly contrasts itself with a sibling.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer the tool should be run to refresh the index after vault files change, but there is no explicit 'when to use' trigger, no prerequisites, and no statement of when this is preferable to other maintenance actions. The `dry_run` parameter hints at a safe preview workflow, but the description itself doesn't route the agent.

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