Skip to main content
Glama
lucaszarzur

CherryTree MCP Server

by lucaszarzur

create_node_with_codebox

Add a new CherryTree node containing a formatted codebox, with support for syntax highlighting labels, surrounding explanatory text, parent assignment, and tags.

Instructions

Create a node with an embedded codebox.

If content_xml is provided, it is used as the full body (text_before/code/text_after ignored).

Args: name: Node title. text_before: Text before the codebox. code: Code content. syntax: Language (sh, python3, sql, java, etc.). text_after: Text after the codebox. parent_id: Parent node ID (0 = top-level). tags: Tags. content_xml: Raw CherryTree XML body (overrides other content params). See create_node docs.

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNo
nameYes
tagsNo
syntaxNosh
parent_idNo
text_afterNo
content_xmlNo
text_beforeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations to rely on, the description discloses important behavioral traits: content_xml overrides other content parameters, returns a confirmation plus a byte-by-byte audit report, and automatically restores a backup on XML parse failure. This goes beyond the minimal mutation implication, though it does not mention permissions or side effects beyond creation.

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 well organized into a one-line purpose, a key conditional note, an Args list, and a Returns section. It is compact but contains no filler, and the most important precedence rule is front-loaded.

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 an 8-parameter tool with no annotations, the description covers all parameters, clarifies precedence, and explains return and rollback behavior, which is strong. It is not fully complete because it omits tool-selection guidance and some format details, but the essential invocation information is present.

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 must carry parameter meaning, and it does. Every parameter is listed with a concise explanation, including syntax examples, parent_id default semantics, and the crucial content_xml override behavior, which adds real value beyond the raw schema.

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 specific verb and resource: 'Create a node with an embedded codebox.' This clearly distinguishes it from a generic node creation tool, though it does not explicitly contrast itself with siblings like create_node or append_codebox_to_node.

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 provides no guidance on when to use this tool versus alternatives such as create_node or append_codebox_to_node. It only gives parameter precedence rules for content_xml and references create_node docs, but does not explain tool selection criteria.

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