Skip to main content
Glama

summarize_tree

Parse Newick or Nexus trees to report format, counts, root state, branch stats, and optional tip labels; selects multi-tree inputs via first, last, random, split, or all.

Instructions

Parse and summarize a tree: format, counts, root state, branch stats.

Never fails on validation issues (use validate_tree for that); a multi-tree file without an explicit selection yields a multi_tree_hint instead of an error.

Args: tree_content: Newick/Nexus content. tree_file: Path to a tree file inside an allowed read root. include_tip_labels: Include the tip-label preview. tip_labels_limit: Max number of preview labels (1..10000). multi_tree: first|last|random|split|all selection for multi-tree Nexus. tree_index: 0-based index into a multi-tree Nexus.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tree_fileNo
multi_treeNo
tree_indexNo
tree_contentNo
tip_labels_limitNo
include_tip_labelsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it does disclose non-obvious behavior: it never errors on validation, returns a multi_tree_hint instead, and tree_file must live inside an allowed read root (an access constraint). It never states the read-only nature of the operation explicitly, which keeps it short of a 5.

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?

Front-loaded with purpose and the validate_tree exclusion, then a compact Args block. Every line adds meaning rather than restating the schema. Slightly verbose in splitting behavior into two sentences, but nothing is wasted.

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

Completeness4/5

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

An output schema exists, so return-value detail is correctly omitted. The non-error contract and multi-tree handling are covered. Minor gaps remain: no guidance on choosing tree_content vs tree_file, and no mention that all parameters are optional.

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

Parameters5/5

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

Schema coverage is 0%, so the description must compensate and it does: each of the 6 parameters is explained with meaning beyond the bare names. Notably it surfaces the 1..10000 range on tip_labels_limit, the allowed values for multi_tree (first|last|random|split|all, absent from the schema), and the 0-based nature of tree_index.

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?

States a specific verb+resource ('Parse and summarize a tree') and enumerates the outputs (format, counts, root state, branch stats), so the agent knows exactly what it gets back. It also explicitly distinguishes itself from the sibling validate_tree, which is the main source of confusion in this cluster.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when-not plus the alternative: 'Never fails on validation issues (use validate_tree for that)'. It also states the conditional routing behavior for a multi-tree file with no selection, so the agent knows this call is safe to make even with ambiguous input.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.