Skip to main content
Glama
musharna
by musharna

Rank substitution models, with the margin over the runners-up

select_substitution_model
Read-onlyIdempotent

Compare substitution models for aligned nucleotide sequences and identify the best-fitting model using AIC, AICc, or BIC criteria. Get ranked models with winner and delta.

Instructions

Compare substitution models and report how much the winner won by.

A single model name reads as a finding. The ranking, the delta to the next model, and whether AIC/AICc/BIC agree are what make it one.

Args: fasta: Aligned nucleotide sequences in FASTA. criterion: "AIC", "AICc" or "BIC". BIC penalises parameters more heavily. seed: Fixes the engine's search. top_n: How many ranked models to return.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNo
fastaYes
top_nNo
criterionNoAIC

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedYes
rankingYes
warningsYes
alignmentYes
criterionYes
best_modelYes
criteria_agreeYes
best_by_criterionYes
n_models_comparedYes
indistinguishable_from_bestYes
Behavior4/5

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

Annotations already indicate the tool is read-only and idempotent. The description adds behavioral context: it ranks models, reports the winner's margin, and explains that BIC penalizes parameters more heavily. It also notes that seed fixes search, which is useful.

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 structured with a clear paragraph summarizing output and an Args list. It is concise but could be slightly tighter; the first paragraph is efficient however.

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?

Given the existence of an output schema (not shown), the description provides adequate context for a straightforward tool. It covers purpose, result interpretation, and all parameters. Minor gaps remain about output format but are covered by the output schema.

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?

With 0% schema description coverage, the Args section fully compensates by describing each parameter: fasta (aligned nucleotide sequences), criterion (AIC/AICc/BIC with BIC penalizing more), seed (fixes search), top_n (number of models). This adds significant meaning beyond the schema.

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 title and description clearly state that the tool ranks substitution models and reports the winner's margin. The verb 'compare' and 'rank' combined with the resource 'substitution models' uniquely identifies the tool. It is distinct from sibling tools like infer_tree and compare_trees.

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

Usage Guidelines3/5

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

The description implies the tool is used for model selection in phylogenetics but does not explicitly state when to use it versus alternatives. No guidance on prerequisites or exclusions is provided.

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