Skip to main content
Glama

Create note from template

create_from_template

Creates a new note from a template and fails if the target exists. Use it to scaffold notes with consistent structure.

Instructions

Create a new note from a template. Fails if the target note already exists.

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": {
      "templatePath": "<templatePath>",
      "targetPath": "<targetPath>"
    },
    "name": "create_from_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
vaultNoVault name. May be omitted when only one vault is configured; see list_vaults.
variablesNoTemplate variables
targetPathYesPath for new note
frontmatterNoAdditional frontmatter
templatePathYesPath to template file

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv2.0.1
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / properties / frontmatter / additionalProperties
      Added value: +{}
    • addedInput schema / properties / frontmatter / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / targetPath / minLength
      Added value: +1
    • addedInput schema / properties / templatePath / minLength
      Added value: +1
    • addedInput schema / properties / variables / additionalProperties
      Added value: +{}
    • addedInput schema / properties / variables / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • changedInput schema / properties / vault / description
      Previous value: -"Vault name"New value: +"Vault name. May be omitted when only one vault is configured; see list_vaults."
    • changedInput schema / required
      Previous value: -[
      -  "vault",
      -  "templatePath",
      -  "targetPath"
      -]New value: +[
      +  "templatePath",
      +  "targetPath"
      +]
  2. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, closed-world mutation. The description adds one genuinely valuable behavioral fact not present in structured fields: it fails rather than overwrites when the target path exists. Beyond that it says nothing about template variable substitution, frontmatter merging, or permission requirements, so the added value is thin but real.

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?

Two short sentences with zero filler, and the core action is front-loaded ahead of the failure condition. Nothing could be removed without losing information.

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

Completeness4/5

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

For a straightforward create operation with full schema coverage and annotations covering the safety profile, the definition plus structured fields is largely sufficient. The remaining gaps, such as whether the created note is returned and how variables conflict with template content, are minor given the absence of complex 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 100%, so the five parameters are already documented, which sets the baseline at 3. The description contributes no additional meaning about how `variables` are interpolated or how `frontmatter` interacts with template-defined frontmatter, which are the two non-obvious nested-object parameters.

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?

States a concrete verb and resource ('Create a new note from a template'), which distinguishes it implicitly from the plain create_note and from render_template. It stops short of explicitly naming the sibling it differs from, so differentiation depends on the agent inferring it from 'from a template'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance and no reference to alternatives such as render_template or create_note, despite those being the obvious competing choices. The only conditional statement is a failure condition, not a selection rule.

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