Skip to main content
Glama

Shard Connector for Obsidian

Add to note

add_to_note

Add text to the end or start of a note, or of the section under a heading, without quoting existing text. With a heading, end means the end of the heading's own text, before its first subheading. Only # headings count; === and --- underlined headings aren't recognized. Text goes on its own lines directly after the last line (end) or before the first (start), so plain text joins the paragraph next to it in Obsidian; begin text with an empty line (end) or end it with one (start) to make a separate paragraph. A heading needs no blank line, and neither does a list item at end; at start, end a list item with an empty line too. A blank line is added only where text would otherwise turn a line next to it into a heading (a --- or === line). Text must close every code fence and %% comment it opens. Returns once Obsidian Sync has the edit, or after about 35s with status upload_pending. A repeat edit within 10 to 30s of the note's last upload returns at once with status waiting_for_upload; it still uploads.

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>",
      "text": "<text>"
    },
    "name": "add_to_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesvault-relative path of an existing .md note, as returned by list_files or search_notes, or an obsidian:// URL for a file in this vault
textYestext to add
headingNo# heading whose section gets the text, such as Log, or a path through its parent headings such as Day 2 > Notes when the text repeats. Omit to target the whole note
positionNoend (the default) or start of the note or section

Output Schema

NameRequiredDescriptionDefault
lineYes1-based line of the note where the added text starts
pathYesvault path of the note
sha256Yeshex SHA-256 of the note after the edit; pass it as expected_sha256 to write_note
statusYesuploaded, waiting_for_upload or upload_pending, as patch_note reports them
headingNothe matched heading's full path
uploadedYeswhether Obsidian Sync has the edit; if false the edit is saved and still queued for upload, as status explains

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only reveal that this mutates non-idempotently and is non-destructive; the description adds substantive behavior: automatic blank-line insertion rules, code-fence and %% comment closure requirements, that only # headings are recognized, and the exact sync semantics including the ~35s upload_pending and 10-30s waiting_for_upload outcomes. That is well beyond what annotations convey and is consistent with idempotentHint=false and destructiveHint=false.

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 and nearly every sentence encodes a distinct rule, so little is wasted. The single dense paragraph stacks many formatting edge cases and would scan better as bullets, but nothing is redundant.

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

Completeness5/5

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

For a mutation tool whose output schema exists, the description still supplies the return statuses (upload_pending, waiting_for_upload) and timing, plus all placement and syntax constraints an agent needs to call it correctly. Nothing important is left undocumented.

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 coverage is 100%, so the baseline is 3, but the description adds genuine meaning beyond the schema: heading resolution through parent paths, the fact that underlined === and --- headings are not recognized, and how position interacts with paragraph/list placement. Only the exact 'a > b' separator syntax remains schema-only territory.

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 opens with a precise verb+resource+scope: 'Add text to the end or start of a note, or of the section under a heading, without quoting existing text.' The clause 'without quoting existing text' implicitly separates it from a patch-style sibling, but no sibling is named, so differentiation relies on inference.

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?

It clearly explains when to supply a heading versus omitting it, and what 'end' vs 'start' mean in each case, which is real usage guidance. However, it never states when to choose this tool over patch_note or write_note, which are the obvious alternatives for editing existing notes.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources