Skip to main content
Glama
bezata

kObsidian MCP

Use Template

templates.use

Apply templates in your Obsidian vault using filesystem substitution or Templater plugin. Create new notes, insert into the active document, or render previews. Works on the current vault.

Instructions

Render or apply a template using one of two engines. The engine field selects the engine and the action field selects the operation:

  • engine:'filesystem' — kObsidian's built-in {{variable}} substitution; no Obsidian plugin required. Actions: render (return the expanded text) or create-note (write a new note from the template).

  • engine:'templater' — delegate to the Templater Obsidian plugin via the Local REST API. Requires OBSIDIAN_API_URL and OBSIDIAN_REST_API_KEY. Actions: render (execute the template and return output), create-note (execute and write to targetFile), or insert-active (insert into the currently active note in Obsidian).

The filesystem engine is pure text substitution — it does NOT evaluate Templater's <% … %> scripts. Use engine:'templater' when you need dynamic evaluation.

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 — Render a filesystem template to text (no file written):

{
  "engine": "filesystem",
  "action": "render",
  "templatePath": "Templates/daily.md",
  "variables": {
    "date": "2026-04-24",
    "topic": "kObsidian release planning"
  }
}

Example 2 — Create a new note from a filesystem template:

{
  "engine": "filesystem",
  "action": "create-note",
  "templatePath": "Templates/daily.md",
  "targetPath": "Journal/2026-04-24.md",
  "variables": {
    "date": "2026-04-24"
  }
}

Example 3 — Use Templater to create a note via the Obsidian plugin:

{
  "engine": "templater",
  "action": "create-note",
  "templateFile": "Templates/meeting.md",
  "targetFile": "Meetings/Kickoff.md",
  "openFile": true
}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

The description fully discloses behavioral traits: engine behaviors, action results, vault scope, and that filesystem is pure text substitution while Templater does dynamic evaluation. No contradictions 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 well-structured with sections, bullet points, and examples. It is front-loaded and every sentence adds value.

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 (two engines, multiple actions, prerequisites), the description is extremely complete, covering all aspects including examples and vault scope.

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?

The input schema has no properties but the description details every parameter and its semantics, adding significant value beyond 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 renders or applies a template using one of two engines, which distinguishes it from sibling tools like templates.list.

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 provides explicit when-to-use guidance for each engine and action, including prerequisites for the Templater engine (environment variables).

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

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