Skip to main content
Glama

insert_template

Render a template and insert it into an existing note at the end, top, or under a heading, while merging template properties into the note's frontmatter.

Instructions

Render a template and insert it into an existing note (at the end, the top, or under a heading). Template properties are merged into the note's frontmatter.

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": {
      "file": "<file>",
      "template": "<template>"
    },
    "name": "insert_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesNote path ("Folder/Note.md"), path without .md, note name, alias, or [[wikilink]]
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.
headingNo
positionNo
templateYes
variablesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare mutation, non-destructiveness, and non-idempotency. The description adds the non-obvious side effect that template properties are merged into frontmatter, but it does not explain merge precedence, overwrite behavior, variable rendering, or what happens on repeated calls.

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 two tightly written sentences with the core action front-loaded and the frontmatter side effect immediately following. Every sentence adds useful information with no filler.

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

Completeness3/5

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

For a six-parameter mutation tool with a nested variables object and only 33% schema description coverage, the description is somewhat thin. It covers the main action and insertion modes, but omits variable semantics, template rendering details, and frontmatter conflict behavior.

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 only 33%, so the description needs to compensate. It clarifies the position and heading modes by saying insertion can happen at the end, the top, or under a heading, but it says nothing about the variables object or the template parameter's expected format.

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?

The description states a specific verb and resource: render a template and insert it into an existing note. The parenthetical insertion positions and frontmatter merge detail sharpen the purpose, and 'existing note' distinguishes it from creating a note from a template, though no sibling is named explicitly.

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 implied by 'existing note' and the end/top/heading insertion options, which gives an agent a reasonable sense of when to use it. However, there is no explicit when-not guidance and no named alternative such as create_from_template or insert_at_line.

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

Deploy Server

Other Tools