Skip to main content
Glama
obsidian-pkm

obsidian-pkm

by AdrianV101

vault_append

Append content to an existing Obsidian note, optionally under a chosen heading, and return a clickable Obsidian link for opening the updated file.

Instructions

Append content to an existing file, optionally under a specific heading. When 'position' is specified, heading is required and must exist in the file. Paths in this tool's output are formatted as markdown links [vault-relative-path.md](obsidian://...) so users can Cmd/Ctrl-click to open in Obsidian. Preserve the link form when relaying paths to the user; pass only the bracket text (e.g. 01-Projects/Foo/note.md) to other vault tools' path arguments, never the full markdown link.

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

Input Schema

NameRequiredDescriptionDefault
pathYesPath relative to vault root
contentYesContent to append
headingNoOptional: append under this heading (e.g., '## Notes', or 'Notes' to match any level). Errors if the heading appears more than once; without 'position', a missing heading appends at the end of the file.
positionNoWhere to insert relative to heading. after_heading: right after the heading line. before_heading: right before the heading line. end_of_section: at the end of the section (before the next same-or-higher-level heading, or EOF). Requires heading.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv4.0.2
    • changedInput schema / properties / heading / description
      Previous value: -"Optional: append under this heading (e.g., '## Notes')"New value: +"Optional: append under this heading (e.g., '## Notes', or 'Notes' to match any level). Errors if the heading appears more than once; without 'position', a missing heading appends at the end of the file."
  2. First observedv3.10.1

TDQS

A3.7/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full behavioral burden and does meaningful work: it discloses the heading-must-exist validation, the duplicate-heading error, the fallback of appending at EOF when no heading is given, and the exact output link format. It still omits whether a missing file is created and whether the operation errors on a nonexistent path.

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?

Purpose is front-loaded in the first clause, then constraints, then output-format guidance. The markdown-link paragraph is longer than the rest but is operationally necessary to prevent agents from passing full links into path arguments.

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?

Complete enough for a 4-parameter mutation tool with no annotations and no output schema: insertion semantics and error conditions are covered. The remaining gap is file-existence/creation behavior, which an agent needs before calling.

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%, so the schema already documents all four parameters including the enum. The description reinforces the cross-field dependency (position requires heading) but largely restates what the schema descriptions already say.

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 and resource ('Append content to an existing file') with an optional scoping condition ('under a specific heading'). It is clearly distinct in nature from vault_write or vault_edit, though it never names a sibling to route against 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?

Gives conditional rules: 'When position is specified, heading is required and must exist.' That implies usage but never says when to pick this over vault_edit or vault_write, nor whether the file must already exist.

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