tree_statistics
Describe a tree without rebuilding it: its shape statistics (tips, height, balance, the gamma statistic), the lineages-through-time curve, and the patristic distance matrix — the path lengths through the tree, which is what to compare against the alignment distances that built it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"newick": "<newick>"
},
"name": "tree_statistics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _files | No | The project: record references shaped like _subject. Their records become library documents a tool names in sequences/parts/document; a trace or alignment is found by file name. | |
| newick | Yes | the tree to describe — wire `newick` from build_tree, or paste one. | |
| _subject | No | The record to act on: exactly one of sequence, accession (+source), sample (an id from list_samples) or file ({name, text} or {name, base64}); record_index picks one record of several. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ltt | Yes | lineages-through-time: the points of the curve and the coalescence times behind it | |
| lttPlot | Yes | the lineages-through-time curve as a plot | |
| tipCount | Yes | number of tips | |
| patristic | Yes | labels and the matrix of path lengths between every pair of tips | |
| statistics | Yes | tips, height, balance and the gamma statistic (with the reason when gamma is undefined for this tree) | |
| patristicMap | Yes | the patristic distances as a heatmap |