compare_trees
Compare two trees in a dataset using Robinson-Foulds distance or triplet resolution metrics to quantify their similarity.
Instructions
Compare two trees in the same dataset.
Metrics:
"rf": Robinson-Foulds distance (also returns RF/RF_max as normalized).
"triplets": mean fraction of triplets correctly resolved.
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": {
"dataset_id": "<dataset_id>",
"tree_key1": "<tree_key1>",
"tree_key2": "<tree_key2>"
},
"name": "compare_trees"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric | No | rf | |
| tree_key1 | Yes | ||
| tree_key2 | Yes | ||
| dataset_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| metric | Yes | ||
| tree_key1 | Yes | ||
| tree_key2 | Yes | ||
| dataset_id | Yes | ||
| normalized | No | e.g. RF / RF_max, or fraction of triplets correct. |