Skip to main content
Glama
bezata

kObsidian MCP

by bezata

Initialize Wiki

wiki.init
Idempotent

Scaffold the LLM-Wiki layout in an Obsidian vault by creating Sources, Concepts, and Entities folders and seeding index, log, and schema files. Run once per vault before using other wiki tools.

Instructions

Scaffold the LLM-Wiki layout under the vault: creates Sources/, Concepts/, Entities/ folders and seeds index.md, log.md, and wiki-schema.md (the schema reference the agent reads back later). Use this once per vault before calling any other wiki.* tool. Idempotent by default — existing files are preserved; pass force:true to re-seed index.md/log.md/wiki-schema.md (folders are never deleted). Returns { created: string[], skipped: string[] } so the agent can confirm what changed. Resolves the wiki location from wikiRoot arg → KOBSIDIAN_WIKI_ROOT env → wiki/.

Operates on the session-active vault (see vault.current — selectable via vault.select) unless an explicit vaultPath argument is passed, which always wins.

Examples:

Example 1 — First-time scaffold in the active vault.:

{}

Example 2 — Re-seed schema/index/log files in a custom wiki directory.:

{
  "wikiRoot": "knowledge",
  "force": true
}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoRe-seed index.md, log.md, and wiki-schema.md even if they already exist. Folders are never deleted. Defaults to false (idempotent).
wikiRootNoPer-call override for the wiki directory under the vault. Defaults to KOBSIDIAN_WIKI_ROOT (env), then 'wiki'.
vaultPathNoPer-call vault override. Wins over the session-active vault and OBSIDIAN_VAULT_PATH for this call only.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYesThe path or identifier the tool acted on.
changedYesTrue if the tool altered vault state on this call; false if it was a no-op.
summaryYesShort human-readable summary of what happened.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed2 schema fields changedv0.3.5
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed3 schema fields changedv0.3.2
    • addedInput schema / properties / force / description
      Added value: +"Re-seed index.md, log.md, and wiki-schema.md even if they already exist. Folders are never deleted. Defaults to false (idempotent)."
    • addedInput schema / properties / vaultPath / description
      Added value: +"Per-call vault override. Wins over the session-active vault and OBSIDIAN_VAULT_PATH for this call only."
    • addedInput schema / properties / wikiRoot / description
      Added value: +"Per-call override for the wiki directory under the vault. Defaults to KOBSIDIAN_WIKI_ROOT (env), then 'wiki'."
  3. Changed4 schema fields changedv0.1.2
    • addedOutput schema / description
      Added value: +"Standard mutation envelope. Individual tools may attach additional fields (e.g. `created`, `appended`, `before`/`after` counts) — those are documented in the tool description."
    • addedOutput schema / properties / changed / description
      Added value: +"True if the tool altered vault state on this call; false if it was a no-op."
    • addedOutput schema / properties / summary / description
      Added value: +"Short human-readable summary of what happened."
    • addedOutput schema / properties / target / description
      Added value: +"The path or identifier the tool acted on."
  4. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the idempotentHint annotation, the description details exactly what happens: existing files are preserved, folders are never deleted, and force:true re-seeds specific files. It discloses the return shape ({ created, skipped }) and the resolution order for the wiki location. This is rich behavioral context that goes well beyond the 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 well-structured: purpose, idempotency, return value, resolution order, vault selection, and examples. It is detailed but every sentence contributes useful information. The two examples cover the main use cases (first-time scaffold and forced re-seed) without being repetitive.

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 has 3 optional parameters, no required input, and an idempotent, non-destructive behavior, the description covers everything an agent needs: what gets created, what force does, what is returned, how the target vault is determined, and that it should be run before other wiki.* tools. No critical information is missing.

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 all parameters are documented in the schema. The description adds extra meaning by explaining the precedence order (wikiRoot arg → KOBSIDIAN_WIKI_ROOT env → wiki/) and that vaultPath always wins over the session-active vault. This synergy between parameters is not in the schema, adding genuine value.

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 opens with a specific verb and resource: 'Scaffold the LLM-Wiki layout under the vault: creates Sources/, Concepts/, Entities/ folders and seeds index.md, log.md, and wiki-schema.md'. This clearly states what the tool does. It also distinguishes itself from siblings by noting 'Use this once per vault before calling any other wiki.* tool', making its unique role unmistakable.

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 gives explicit usage context: 'Use this once per vault before calling any other wiki.* tool.' It also explains the idempotent default and when to pass force:true, and clarifies vault selection rules ('Operates on the session-active vault... unless an explicit vaultPath argument is passed, which always wins'). This is full guidance on when and how to use it.

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

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/bezata/kObsidian'

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