Skip to main content
Glama

refactor-notes

Split notes by headings, merge multiple notes, or extract sections to new notes for structural reorganization in Obsidian vaults.

Instructions

Unified tool for structural note refactoring: split notes by heading, merge multiple notes, and extract sections to new notes

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesAction to perform: 'split', 'merge', 'extract-section'
pathNoSource note path
levelNoHeading level to split at (default: 2, for split action)
keep_originalNoKeep extracted content in original note (for split action)
output_dirNoDirectory for new notes (for split action)
dry_runNoPreview changes without modifying files
pathsNoComma-separated list of notes to merge (for merge action)
outputNoOutput note path
separatorNoSeparator between notes (for merge action)
delete_originalsNoDelete original notes after merge (for merge action)
add_headingsNoAdd note names as headings (for merge action)
headingNoHeading to extract (for extract-section action)
remove_from_originalNoRemove from source note (default true, for extract-section action)
add_linkNoAdd link to new note in source (default true, for extract-section action)
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions 'structural note refactoring' which implies file modifications, but doesn't specify permissions needed, whether changes are reversible, or what happens to original files beyond parameter hints. The 'dry_run' parameter suggests preview capability, but this isn't highlighted in the description.

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?

The description is a single, efficient sentence that front-loads the key information ('Unified tool for structural note refactoring') and lists the three actions. Every word earns its place, though it could be slightly more structured by separating the action descriptions.

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

Completeness2/5

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

For a complex 14-parameter tool with no annotations and no output schema, the description is inadequate. It doesn't explain what 'refactoring' entails operationally, what the output looks like, error conditions, or how the three actions differ fundamentally. The agent must rely entirely on parameter schemas to understand this tool's behavior.

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 description coverage is 100%, so the schema already documents all 14 parameters thoroughly. The description adds no additional parameter semantics beyond what's in the schema - it doesn't explain parameter relationships, default behaviors, or action-specific requirements. Baseline 3 is appropriate when schema does all the work.

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 clearly states the tool's purpose as 'structural note refactoring' with three specific actions (split, merge, extract-section), which is a clear verb+resource combination. However, it doesn't differentiate from sibling tools like 'edit-note' or 'manage-notes', which might have overlapping functionality.

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

Usage Guidelines2/5

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

The description lists the three actions but provides no guidance on when to use this tool versus alternatives like 'edit-note' or 'manage-notes'. There's no mention of prerequisites, use cases, or exclusions, leaving the agent to infer usage from parameter names alone.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zach-snell/obx'

If you have feedback or need assistance with the MCP directory API, please join our Discord server