Skip to main content
Glama

move_section

Move a heading section and its subsections between notes or reposition it under a target heading in the same note.

Instructions

Move a heading section (with its subsections) to another note, or to another position in the same note (under target_heading).

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>",
      "heading": "<heading>"
    },
    "name": "move_section"
  }
}

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.
headingYes
to_fileNoDestination note (default: same note)
leave_linkNoLeave a link to the moved section behind (default false)
target_headingNoAppend under this heading in the destination (default: end of note)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=false). The description adds useful scope detail that the subsection tree moves as a unit, but it does not disclose that the section is removed from the source, how ambiguous or missing headings are handled, or what happens on a destination conflict.

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?

One sentence, front-loaded with the action and resource, with the alternative destination mode in a parenthetical. Nothing is wasted and nothing important is buried.

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 6-parameter mutation tool with no output schema, the description covers the two destination modes but leaves out source-side effects (heading removed from origin), heading-match semantics, and conflict behavior when the heading already exists in the destination. The gaps are real for a tool that relocates content.

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?

At 83% schema coverage the schema already documents file, vault, to_file, leave_link and target_heading. The description reiterates target_heading as the insertion point but adds no format or matching semantics (e.g., whether heading matching is exact or case-insensitive) beyond what the schema states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (move a heading section), plus the scope of what travels with it (its subsections) and both destination modes: another note or another position in the same note. This clearly separates it from move_file (whole files) and update_section (editing content in place).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The two usage cases are explicit: cross-note relocation via to_file, or intra-note repositioning via target_heading. There is no statement of when not to use it (e.g., renaming a heading, moving a whole note) and no alternative tools are named, so it stops short of full routing guidance.

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