Skip to main content
Glama

create_tree

Create a hierarchical tiling tree to explore problems by splitting solution spaces using MECE principles, starting with a root tile representing the complete challenge.

Instructions

Create a new tiling tree to explore a problem/challenge. The tree starts with a root tile representing the complete solution space, which you'll then split recursively using MECE (Mutually Exclusive, Collectively Exhaustive) principles.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName for this tiling tree
problemStatementYesThe problem or challenge to explore (e.g., 'How can we reduce carbon emissions in transportation?')

Implementation Reference

  • Core implementation of createTree method in ResearchTreeManager class. Creates a new TilingTree with a root tile representing the complete solution space.
    createTree(name: string, problemStatement: string): TilingTree { const rootTile: Tile = { id: randomUUID(), title: "Complete Solution Space", description: `All possible solutions to: ${problemStatement}`, childrenIds: [], isLeaf: false, createdAt: new Date(), updatedAt: new Date(), metadata: {}, }; const tree: TilingTree = { id: randomUUID(), name, problemStatement, rootTileId: rootTile.id, createdAt: new Date(), updatedAt: new Date(), metadata: {}, }; this.tiles.set(rootTile.id, rootTile); this.trees.set(tree.id, tree); return tree; }
  • MCP server handler for create_tree tool. Dispatches to treeManager.createTree and formats response.
    case "create_tree": { const result = treeManager.createTree( args.name as string, args.problemStatement as string ); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; }
  • Tool schema definition including input schema for validation in the TOOLS array used for list tools request.
    { name: "create_tree", description: "Create a new tiling tree to explore a problem/challenge. The tree starts with a root tile representing the complete solution space, which you'll then split recursively using MECE (Mutually Exclusive, Collectively Exhaustive) principles.", inputSchema: { type: "object", properties: { name: { type: "string", description: "Name for this tiling tree", }, problemStatement: { type: "string", description: "The problem or challenge to explore (e.g., 'How can we reduce carbon emissions in transportation?')", }, }, required: ["name", "problemStatement"], }, },
  • src/index.ts:393-395 (registration)
    Registration of all tools including create_tree via the ListToolsRequestSchema handler that returns the TOOLS array.
    server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: 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/k-chrispens/tiling-trees-mcp'

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