Skip to main content
Glama

Prepend to note

prepend_note

Add content to the top of an Obsidian note, placed after any frontmatter, so new entries appear first without breaking metadata.

Instructions

Prepend content to a note, after any frontmatter, through Obsidian.

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": {
      "content": "<content>"
    },
    "name": "prepend_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoNote name, resolved like a wikilink. No folder path, no extension.
pathNoExact path from the vault root, e.g. "Projects/Roadmap.md".
inlineNoPrepend without a trailing newline.
contentYesContent to prepend. Use \n for line breaks.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the valuable, non-obvious behavior that content is inserted after frontmatter, but says nothing about what happens when the note is missing, whether it is created, encoding/escaping rules, or permission needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short sentence with the key placement detail front-loaded and no wasted clauses; 'through Obsidian' is mild filler but harmless.

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 4-parameter mutation tool with no annotations and no output schema, the definition covers the essential insert-position behavior but leaves resolution between file and path, missing-note handling, and return value unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3; the description adds a bit by making clear the prepended 'content' is positioned relative to frontmatter rather than at byte zero. It adds no meaning about the file/path/inline parameters beyond the schema.

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 specific verb (prepend) and resource (note) plus a non-obvious placement rule: content goes after any frontmatter. The prepend/append distinction from siblings like append_note is implicit in the verb but never explicitly contrasted.

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?

No guidance on when to use this versus append_note, prepend_daily, or create_note, and no statement of prerequisites (e.g. whether the note must already exist). The agent must infer selection criteria purely from the verb.

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