Skip to main content
Glama

get_coverage_analysis

Analyze solution space completeness for trees to identify unexplored branches, unvalidated splits, and suggest next research steps.

Instructions

Analyze the completeness of solution space exploration for a tree. Shows unexplored branches, unvalidated splits, and suggestions for next steps.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
treeIdYesID of the tree to analyze

Implementation Reference

  • Core handler function implementing the get_coverage_analysis tool logic. Computes metrics like total tiles, leaf count, unexplored branches, validation status, and generates exploration suggestions.
    getCoverageAnalysis(treeId: string): any {
      const tree = this.trees.get(treeId);
      if (!tree) {
        throw new Error(`Tree ${treeId} not found`);
      }
    
      const allTiles = this.getTilesInTree(tree.rootTileId);
      const leaves = allTiles.filter((t) => t.isLeaf);
      const unexplored = this.getUnexploredTiles(treeId);
      const unvalidated = this.getUnvalidatedSplits(treeId);
      const validated = allTiles.filter((t) => t.isMECE === true);
      const evaluated = leaves.filter((t) => t.evaluation);
    
      // Calculate depth
      const maxDepth = this.calculateMaxDepth(tree.rootTileId);
    
      return {
        totalTiles: allTiles.length,
        leafTiles: leaves.length,
        unexploredBranches: unexplored.length,
        validatedSplits: validated.length,
        unvalidatedSplits: unvalidated.length,
        evaluatedLeaves: evaluated.length,
        unevaluatedLeaves: leaves.length - evaluated.length,
        maxDepth,
        coveragePercentage:
          allTiles.length > 1
            ? ((validated.length / (allTiles.length - leaves.length)) * 100).toFixed(1)
            : 0,
        explorationSuggestions: this.generateSuggestions(unexplored, unvalidated, leaves),
      };
    }
  • Input schema for the get_coverage_analysis tool, requiring a treeId parameter.
    inputSchema: {
      type: "object",
      properties: {
        treeId: {
          type: "string",
          description: "ID of the tree to analyze",
        },
      },
      required: ["treeId"],
    },
  • src/index.ts:603-613 (registration)
    Registration and dispatch handler in the MCP server switch statement that calls the ResearchTreeManager.getCoverageAnalysis method and formats the response.
    case "get_coverage_analysis": {
      const result = treeManager.getCoverageAnalysis(args.treeId as string);
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(result, null, 2),
          },
        ],
      };
    }
  • src/index.ts:322-334 (registration)
    Tool definition in the TOOLS array, including name, description, and schema, registered to the MCP server.
      name: "get_coverage_analysis",
      description: "Analyze the completeness of solution space exploration for a tree. Shows unexplored branches, unvalidated splits, and suggestions for next steps.",
      inputSchema: {
        type: "object",
        properties: {
          treeId: {
            type: "string",
            description: "ID of the tree to analyze",
          },
        },
        required: ["treeId"],
      },
    },
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It describes what the tool does ('analyze... shows unexplored branches, unvalidated splits, and suggestions') but lacks critical details: whether this is a read-only operation, if it requires specific permissions, what the output format is (e.g., structured report or raw data), or any performance considerations like rate limits. For a tool with no annotation coverage, this is a significant gap.

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 concise and front-loaded, with a clear purpose in the first sentence. It uses two sentences efficiently: the first states the overall goal, and the second elaborates on specific aspects ('unexplored branches, unvalidated splits, and suggestions'). There's no wasted text, though it could be slightly more structured by explicitly separating features.

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 the complexity of analyzing tree exploration completeness, the description is incomplete. With no annotations and no output schema, it fails to disclose behavioral traits (e.g., read-only status, output format) or provide sufficient context for effective use. It hints at what the analysis includes but doesn't cover how results are returned or any limitations, making it inadequate for a tool with such a nuanced purpose.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, with 'treeId' clearly documented as 'ID of the tree to analyze.' The description adds no additional parameter semantics beyond this, such as format constraints or examples. Since the schema does the heavy lifting, the baseline score of 3 is appropriate, as the description doesn't compensate but also doesn't detract.

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 clearly states the tool's purpose: 'Analyze the completeness of solution space exploration for a tree.' It specifies the action ('analyze') and resource ('solution space exploration for a tree'), distinguishing it from siblings like 'get_trees' (list trees) or 'get_tree_validation_report' (validation-specific). However, it doesn't explicitly differentiate from 'get_unexplored_tiles' or 'get_top_leaves', which might overlap in analyzing tree aspects.

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. It mentions analyzing 'unexplored branches, unvalidated splits, and suggestions for next steps,' but doesn't specify contexts where this is preferred over tools like 'get_unexplored_tiles' (for unexplored branches) or 'get_tree_validation_report' (for validation). There's no mention of prerequisites or exclusions, leaving usage ambiguous.

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