Skip to main content
Glama
lucaszarzur

CherryTree MCP Server

by lucaszarzur

move_node

Move a node to a new parent within a CherryTree document, ensuring safe writes through automatic rollback and byte-level audit.

Instructions

Move a node under a different parent.

Args: node_id: Node to move. new_parent_id: Destination parent (0 = top-level).

Returns: Confirmation message followed by byte-by-byte audit report. On XML parse failure, backup is restored automatically (ROLLBACK).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
node_idYes
new_parent_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

There are no annotations, so the description carries the behavioral burden. It discloses the return format, the byte-by-byte audit report, and the automatic backup/rollback behavior on XML parse failure. It stops short of detailing validation side effects like cycle prevention, but the disclosed rollback semantics are still valuable.

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?

The description is compact, front-loaded with the purpose, and uses clear Args/Returns sections. Every sentence adds relevant information without unnecessary fluff.

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?

For a mutating XML-backed operation with no annotations, the description covers the required inputs, return behavior, and an important failure/rollback path. It does not mention all possible constraints such as invalid parent relationships or effects on child ordering, but it is largely complete for invoking the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description fully compensates by explaining both parameters. node_id is defined as the node to move, and new_parent_id is clarified as the destination parent with the special value 0 meaning top-level.

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?

The description opens with a precise operation statement, 'Move a node under a different parent,' which clearly identifies the verb, resource, and result. This distinguishes it from sibling read/create/update/delete tools.

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 intended use case is implied by the operation itself: an agent should call this when reparenting a node. However, there is no explicit guidance about when not to use it, and no comparison with alternatives such as update_node_properties.

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