Skip to main content
Glama
Obsidian CDP MCP Server

Obsidian CDP MCP Server

obsidian_apply_template

Apply an Obsidian template to the active file or create a new note from a template, with an optional target path.

Instructions

Apply a template to the current file or create a new file from template.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "template": "<template>"
    },
    "name": "obsidian_apply_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetNoTarget file path. If not provided, applies to current active file.
templateYesTemplate file name or path (relative to templates folder)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.9.2

TDQS

B3.2/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 behavioral burden, yet it omits the single most important fact for a mutation tool: what happens to the target file's existing content (overwrite, prepend, append, merge) and whether the operation is reversible. It also says nothing about failure modes such as a missing template file or a non-existent target 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 that states both modes with zero filler. Nothing is padded and nothing needs reordering.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an unannotated mutation tool with no output schema, the definition should state content-preservation semantics and error conditions; neither is present. It is complete enough to identify the tool but not complete enough for an agent to call it safely on a file it cares about.

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 parameters are already documented, including the active-file fallback for 'target' and the templates-folder-relative resolution for 'template'. The description adds no format, path-syntax, or override detail beyond that baseline.

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?

Names a specific verb+resource (apply a template) and covers both operating modes: existing file vs. new file from template. It is distinguishable from siblings like obsidian_list_templates, but it never names a sibling or explicitly scopes itself against them.

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 by the two-mode phrasing; the agent can infer 'use when stamping a template onto a note,' but there is no explicit when-to-use, when-not-to-use, or named alternative (e.g., list_templates first, or read_file for inspection). The default-to-active-file behavior lives in the schema, not the description.

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