Skip to main content
Glama

prepend_to_note

Insert text at the top of a note after frontmatter or at the start of a heading section, so you can add updates or notes without overwriting existing content.

Instructions

Insert text at the top of a note (after the frontmatter) or at the start of a heading's section.

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

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.
contentYes
headingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=false, so the mutation profile is covered. The description adds genuinely useful behavior the annotations cannot convey: insertion lands after the frontmatter and existing text is shifted rather than overwritten. It still omits what happens if the heading is absent (error vs. create section) and whether frontmatter is ever disturbed.

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 well-formed sentence with the placement rule front-loaded and zero filler. It is efficient, though the terseness leaves the behavioral and alternative-tool gaps unaddressed.

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 non-idempotent mutation tool with no output schema and half its parameters undocumented, the definition covers the mechanics of placement but not the edge cases: missing heading, missing note, interaction with frontmatter, or what the response reports. Adequate but noticeably incomplete.

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 50% – file and vault carry descriptions, while content and heading have none. The description compensates for the heading gap by explaining that heading selects a section whose start receives the text, but content (the payload to insert) and any heading-matching rules remain undocumented.

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 pairs the specific verb 'insert' with the resource 'note' and pins the exact placement: after the frontmatter at the top, or at the start of a named heading's section. That placement detail implicitly distinguishes it from append_to_note, though no sibling is named explicitly, so it stops short of a 5.

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 word 'top' – an agent can infer that this is the right tool when content must precede existing text. There is no explicit when-to-use statement, no mention of when to prefer append_to_note or replace_in_note, and no stated prerequisites such as the note or heading needing to exist.

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