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>;
    }
Behavior2/5

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

No annotations are provided, so the description carries full burden. It only states 'Get all tiling trees' without disclosing behavioral traits such as whether this is a read-only operation, if it returns a list or single item, potential rate limits, or error conditions. This is inadequate for a tool with no annotation coverage.

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 a single, efficient sentence with no wasted words. It's front-loaded and appropriately sized for a simple tool, making it easy to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations, no output schema, and multiple sibling tools, the description is incomplete. It doesn't explain what 'tiling trees' are, the return format, or how this differs from other get_* tools, leaving significant gaps for an AI agent to understand context and usage.

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 input schema has 0 parameters with 100% coverage, so no parameter documentation is needed. The description doesn't add param info, but that's acceptable here since there are no params to explain, aligning with the baseline for zero parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Get all tiling trees' states a clear action ('Get') and resource ('tiling trees'), but it's vague about what 'tiling trees' are and doesn't distinguish this tool from siblings like 'get_tree_validation_report' or 'get_top_leaves' that also retrieve tree-related data. It provides basic purpose but lacks specificity.

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. With siblings like 'get_tree_validation_report' and 'get_top_leaves', the description doesn't explain if this is for raw data, summaries, or other contexts, leaving usage unclear.

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/k-chrispens/tiling-trees-mcp'

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