Skip to main content
Glama

vault_init

Destructive

Initialize a new vault from template or migrate existing Obsidian notes to vault-mcp format, classifying files and converting todos.

Instructions

Initialize a new vault or migrate existing Obsidian notes to vault-mcp format.

Actions: setup: Detect vault state and act accordingly. - Empty vault: seeds the vault with template structure (directory layout, .obsidian config, tags.yaml, templates/). - Non-empty vault with unmanaged files: scans all unmanaged .md files, classifies them into auto_captures / auto_notes / ambiguous using server-side heuristics, persists a plan to .brain/import-plan.json, and returns ONLY the ambiguous files for review. Claude should NOT call migrate until the user confirms. - Already-initialized vault: returns status "already_initialized".

migrate: Execute the migration from the persisted import plan. params: manual_overrides (list[dict], optional — each dict must have "path" key to identify the file; supported override fields: target ("captures"|"notes"), title, tags (list[str]), source_type (captures), domain/confidence (notes)), keep_original (bool, default False — if True, source files are preserved after migration)

WORKFLOW: For setup: CALL vault_init(action="setup"). Empty vault → vault seeded from template. Done. Non-empty vault → review summary + ambiguous_files. 1. Present summary counts to user. 2. For ambiguous files, decide target with user if needed. 3. CONFIRM full plan, then call migrate.

For migrate: CONFIRM: Show user the counts and ambiguous decisions before calling. auto-classified files will be migrated automatically. CALL vault_init(action="migrate", manual_overrides=[...], keep_original=False).

Todo conversion (applied automatically during migration):

  • pending task → - pending task (plain bullet)

  • done task → - done task (strikethrough, history preserved)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes
keep_originalNo
manual_overridesNo
Behavior5/5

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

The description fully discloses the tool's side effects beyond the annotations (destructiveHint=true, idempotentHint=false). It explains that setup may 'scans all unmanaged .md files, classifies them... persists a plan to .brain/import-plan.json', that migrate executes the plan, and that keep_original controls whether source files are preserved. The automatic todo conversion is also disclosed. No contradiction with annotations.

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?

The description is long but highly structured with clear 'Actions', 'WORKFLOW', and 'Todo conversion' sections. Every sentence adds necessary information for safe and correct usage of a complex tool. No fluff or redundant repetition of schema/annotations.

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 two-action complexity, absence of output schema, and the need to guide an agent through a multi-step migration process, the description is remarkably complete. It covers all states (empty, non-empty, already-initialized), the decision workflow, parameter details, and side effects, leaving no critical operational gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description carries the full burden of parameter meaning. It defines the allowed values for 'action' (setup/migrate), explains the 'manual_overrides' structure including required 'path' key and supported override fields (target, title, tags, etc.), and clarifies 'keep_original' with a default and consequence. This completely compensates for the empty schema.

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 core purpose: 'Initialize a new vault or migrate existing Obsidian notes to vault-mcp format.' It goes further to enumerate two distinct actions (setup and migrate) with specific behaviors for each vault state, making it easily distinguishable from sibling tools like vault_capture, vault_read, or vault_analyze.

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 WORKFLOW section provides explicit step-by-step instructions on when to call setup vs migrate, including when NOT to call migrate ('Claude should NOT call migrate until the user confirms'). It also specifies sequencing (e.g., 'review summary + ambiguous_files' before deciding), making usage clear and unambiguous.

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/oliverxuzy-ai/knowledge-in-a-vat'

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