Skip to main content
Glama

get_trees

Retrieve all hierarchical tile-based trees to explore and organize interconnected research ideas, analyze gaps, and support visualization exports.

Instructions

Get all tiling trees

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function that executes the 'get_trees' tool logic, returning an array of all TilingTree objects managed by ResearchTreeManager.
    getTrees(): TilingTree[] { return Array.from(this.trees.values()); }
  • The input schema definition for the 'get_trees' tool, specifying an empty object since no parameters are required.
    inputSchema: { type: "object", properties: {}, },
  • src/index.ts:214-221 (registration)
    The tool registration entry in the TOOLS array, defining name, description, and schema for 'get_trees'.
    { name: "get_trees", description: "Get all tiling trees", inputSchema: { type: "object", properties: {}, }, },
  • src/index.ts:507-517 (registration)
    The dispatch handler in the switch statement that calls treeManager.getTrees() and formats the response for the MCP server.
    case "get_trees": { const result = treeManager.getTrees(); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; }
  • Type definition for TilingTree, which is the return type of getTrees().
    export interface TilingTree { id: string; name: string; problemStatement: string; // The original problem/challenge being explored rootTileId: string; // The complete solution space createdAt: Date; updatedAt: Date; metadata: Record<string, any>; }

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