Skip to main content
Glama
robertZaufall

MindManager MCP Server

serialize_current_mindmap_to_markdown

Convert your current mind map to Markdown format with options for notes inclusion, detail levels, and text-only export.

Instructions

Serializes the currently loaded mindmap to Markdown format.

Args:
    include_notes (bool): If True, include notes in the serialization. Defaults to True.
    mode (str): Detail level ('full', 'content', 'text'). Defaults to 'content'.
    turbo_mode (bool): Enable turbo mode (text only). Defaults to False.

Returns:
    Union[str, Dict[str, str]]: Markdown formatted string or error dictionary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
include_notesNo
modeNocontent
turbo_modeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The handler function decorated with @mcp.tool(), which registers the tool and implements the core logic by calling the _serialize_markdown helper and handling errors.
    @mcp.tool()
    async def serialize_current_mindmap_to_markdown(
        include_notes: bool = True,
        mode: str = 'content',
        turbo_mode: bool = False
    ) -> Union[str, Dict[str, str]]:
        """
        Serializes the currently loaded mindmap to Markdown format.
    
        Args:
            include_notes (bool): If True, include notes in the serialization. Defaults to True.
            mode (str): Detail level ('full', 'content', 'text'). Defaults to 'content'.
            turbo_mode (bool): Enable turbo mode (text only). Defaults to False.
    
        Returns:
            Union[str, Dict[str, str]]: Markdown formatted string or error dictionary.
        """
        try:
            print(f"Serializing current mindmap to Markdown.", file=sys.stderr)
            text = _serialize_markdown(include_notes=include_notes, mode=mode, turbo_mode=turbo_mode)
            print("Serialization to Markdown successful.", file=sys.stderr)
            return text
        except Exception as e:
            print(f"ERROR during serialization to Markdown: {e}", file=sys.stderr)
            return {"error": "Serialization Error", "message": f"Failed to serialize to Markdown: {e}"}
  • Supporting helper function that retrieves the current mindmap document and serializes it to markdown using the external serialization module.
    def _serialize_markdown(include_notes=True, mode='content', turbo_mode=False):
        document = _get_document_instance(turbo_mode=turbo_mode)
        if document.get_mindmap(mode=mode):
            markdown = serialization.serialize_mindmap_markdown(document.mindmap, include_notes=include_notes)
            return markdown
        return None
Behavior2/5

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

With no annotations provided, the description carries full burden but offers minimal behavioral insight. It mentions the tool serializes a 'currently loaded mindmap' (implying state dependency) but doesn't cover error conditions, performance implications, or what 'turbo mode' entails beyond 'text only'. More context on these aspects would improve transparency.

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 well-structured and front-loaded with the core purpose, followed by parameter and return details. It uses bullet-like formatting for clarity without unnecessary verbosity, though the 'Args' and 'Returns' sections could be integrated more seamlessly.

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?

Given the tool's moderate complexity (3 parameters, state dependency) and no annotations, the description is partially complete. It covers parameters and return types (aided by an output schema), but lacks usage context, error handling details, and behavioral nuances like how 'mode' and 'turbo_mode' interact, leaving gaps for an agent.

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?

The description adds meaningful semantics beyond the input schema, which has 0% coverage (no descriptions for parameters). It explains 'include_notes' controls note inclusion, 'mode' defines detail levels with examples ('full', 'content', 'text'), and 'turbo_mode' enables text-only output. This compensates well for the schema's lack of documentation.

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 clearly states the specific action ('serializes') and resource ('currently loaded mindmap') with the output format ('to Markdown format'). It distinguishes from sibling tools like 'serialize_current_mindmap_to_json' and 'serialize_current_mindmap_to_mermaid' by specifying the target format.

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?

No guidance is provided on when to use this tool versus alternatives like the JSON or Mermaid serialization siblings. The description lacks context about prerequisites (e.g., needing a loaded mindmap) or scenarios favoring Markdown output over other formats.

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/robertZaufall/mindm-mcp'

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