Skip to main content
Glama
stonematt

mcp-obsidian-cli

by stonematt

obsidian_create_from_template

Create a new Obsidian note from a Templater template, expanding placeholders like date and title. Specify the template and output path to generate dynamic notes.

Instructions

Create a new note from a Templater template, expanding placeholders.

This wraps the CLI's templater:create-from-template verb. Use this whenever the template contains Templater placeholders such as <% tp.date.now() %>, <% tp.file.title %>, or any other <% ... %> expression — those are evaluated by Obsidian's Templater plugin and substituted into the output. For plain notes with no placeholder expansion, use obsidian_create.

Parameters: template (required) — vault-relative path to the Templater template (e.g. "Templates/daily.md") file (required) — vault-relative output path for the new note (e.g. "Daily/2026-05-18.md")

Examples: obsidian_create_from_template({ template: "Templates/daily.md", file: "Daily/2026-05-18.md" }) obsidian_create_from_template({ template: "Templates/project.md", file: "Projects/new-idea.md" })

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesVault-relative output path for the new note
templateYesVault-relative path to the Templater template
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It explains the key behavior of expanding Templater placeholders and mentions the underlying CLI verb. However, it does not disclose potential edge cases like whether existing files are overwritten, what happens if the template path is invalid, or if parent directories are auto-created. Some behavioral context is added, but not exhaustive.

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: opening purpose sentence, a brief explanation of when to use it, a parameters section, and examples. Every sentence contributes useful information, and the structure makes it easy to scan. No wasted words.

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?

For a two-parameter tool with high schema coverage and no output schema, the description fully covers usage context: what it does, when to use it, why it exists (placeholder expansion), differentiation from an alternative, and concrete invocations. The agent has enough context to invoke it correctly.

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 coverage is 100% with both parameters described in the schema. The description repeats the parameter definitions and adds concrete examples (e.g., 'Templates/daily.md'). The examples are illustrative but do not add substantial semantic meaning beyond what the schema already provides. Baseline of 3 is appropriate.

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: 'Create a new note from a Templater template, expanding placeholders.' It explicitly distinguishes this tool from sibling `obsidian_create` by stating that plain notes without placeholder expansion should use `obsidian_create`. This fully differentiates it from nearby tools.

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 guidance: 'Use this whenever the template contains Templater placeholders such as `<% tp.date.now() %>`...' and then names the alternative for plain notes: 'For plain notes with no placeholder expansion, use `obsidian_create`.' This is clear when-to-use and when-not-to-use guidance with a specific alternative.

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/stonematt/mcp-obsidian-cli'

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