Skip to main content
Glama
musharna
by musharna

Infer a phylogenetic tree with bootstrap support

infer_tree
Read-onlyIdempotent

Build a maximum-likelihood tree with per-clade bootstrap support from aligned nucleotide sequences. Requires a substitution model and bootstrap replicates.

Instructions

Build a maximum-likelihood tree and measure how well the data support it.

Always bootstraps. There is deliberately no option to skip it: an unsupported topology is the failure mode this server exists to prevent.

Args: fasta: Aligned nucleotide sequences in FASTA. All sequences must be the same length — this server does not align. model: Substitution model, e.g. "JC", "HKY", "GTR+G". Run select_model first if you do not have a reason to prefer one. replicates: Bootstrap replicates (20-1000). Cost is roughly linear in this, so 100 is a reasonable default and 1000 is for a final answer. seed: Fixes both the resampling and the engine's search.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNo
fastaYes
modelNoGTR+G
replicatesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYes
newickYes
supportYes
warningsYes
alignmentYes
log_likelihoodYes
reproducibilityYes
newick_with_supportYes
Behavior5/5

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

Adds significant context beyond annotations: always bootstraps, no skip option, cost linear in replicates, seed fixes both resampling and search. No contradiction with annotations (readOnlyHint, idempotentHint are consistent with deterministic computation).

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?

Description is concise (~80 words), well-structured with a bold purpose statement, a key behavioral note, and a clear Args section. Every sentence adds value; no redundancy.

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

Completeness5/5

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

Given the tool's complexity (phylogenetic inference), the description covers input requirements, model selection, bootstrap behavior, and cost trade-offs. Output schema existence handles return values, so no gap.

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?

All four parameters are well described despite 0% schema coverage: fasta (aligned, same length), model (examples, suggest select_model), replicates (range, cost linear, default advice), seed (fixes resampling and search). Adds meaning beyond type/name.

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?

The description clearly states it builds a maximum-likelihood tree with bootstrap support, using a specific verb ('Build') and resource ('phylogenetic tree'). It distinguishes itself from siblings like select_model, compare_trees, and simulate_alignment by its core function.

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

Usage Guidelines4/5

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

Provides guidance to run select_model first if model unknown, and notes that sequences must be aligned (this server does not align). Implicitly, this tool is for aligned sequences needing a tree with bootstrap. Lacks explicit when-not-to-use statements, but context is strong.

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/musharna/phylokit-mcp'

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