Skip to main content
Glama

merge_notes

Destructive

Combine multiple notes into one by appending their content to a target note under headings, redirecting inbound links to the target, and moving source notes to .trash.

Instructions

Merge several notes into one: their content is appended to the target (each under a heading with its title), links to them are redirected to the target, and the sources are moved to .trash.

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": {
      "sources": "<sources>",
      "target": "<target>"
    },
    "name": "merge_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.
targetYes
sourcesYes
headingsNoPut each source under "## Title" (default true)
delete_sourcesNoDefault true

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and non-idempotent, and the description goes further by disclosing the three side effects: content appended under titled headings, links rewritten to the target, and sources moved to .trash. It does not say whether trashing is recoverable or that the behavior depends on delete_sources, so it stops short of full transparency.

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?

A single front-loaded sentence with a colon introducing the three effects; every clause (content, links, trash) carries distinct information and there is no filler.

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 destructive, multi-step mutation with no output schema, the description covers the state changes but not what is returned (e.g., resulting note or link counts) nor failure conditions such as a missing source or a target included in sources. Adequate but leaves an agent guessing about error handling.

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 60% and target/sources carry no descriptions, but the description compensates by explaining the role of each: sources are appended into the target and then trashed, and the target is the surviving note. It also restates the heading behavior captured by the headings parameter but says nothing about vault or the delete_sources=false case.

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 ('Merge several notes into one') plus the exact scope of the merge (content, links, sources). An agent can tell this is a consolidating write operation rather than an append or copy, though no sibling is named as the alternative.

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?

The description implies usage ('merge several notes into one') but never states when to choose this over append_to_note or copy_file, nor any prerequisite such as notes living in the same vault. Usage is inferable from the mechanics rather than stated.

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