Skip to main content
Glama

Jean — Molecular Biology & Genomics

select_substitution_model

Read-only

Choose the substitution model for a maximum-likelihood phylogeny by fitting every candidate — model x rate-heterogeneity x invariant-sites — on ONE shared topology and ranking them by AIC, AICc or BIC with Akaike weights.

Input Schema

NameRequiredDescriptionDefault
_filesNoThe 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.
modelsNocandidate substitution models. Every one is fitted; the sweep costs one ML optimisation per candidate.
_subjectNoThe 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.
criterionNowhich information criterion ranks the table. Changing it re-ranks candidates that are already fitted — it does not re-fit them.AIC
sequencesYesaligned sequences — wire align_sequences' rows here, or name library documents.
include_subjectNoalso include the node's subject.
gamma_categoriesNodiscrete-Γ category counts to try. `[1]` is no rate heterogeneity; `[1, 4]` is the usual sweep and is the panel's default.
include_invariantNoalso try each model with a proportion of invariant sites (+I), doubling the candidate count.

Output Schema

NameRequiredDescriptionDefault
bestYesthe winning model in the conventional shorthand (e.g. `GTR+G4+I`)
fitsYesevery candidate with its log-likelihood, free parameters, AIC/AICc/BIC and Akaike weight
weightYesthe winner's Akaike weight — the share of the evidence it carries. A low weight means the data do not choose between the top models, which is a finding and not a failure
candidatesYeshow many candidates were fitted
startingTreeYesthe ONE topology every candidate was fitted on, in Newick — reported because it is a shared assumption of the whole table

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and non-destructive, so the safety profile is covered; the description adds real behavior beyond that — all candidates share one topology (comparison is apples-to-apples, not jointly optimized) and results include Akaike weights. It does not mention runtime scaling or failure modes, but the output schema carries the return shape.

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?

A single front-loaded sentence that leads with the action and follows with the mechanism and ranking output. It is dense but every clause (shared topology, criterion, weights) adds information; no filler.

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?

For an 8-parameter tool with nested _subject and an output schema, the description supplies the essential conceptual context (shared topology, full sweep, criterion-based ranking). Minor gaps remain — no mention that input must be aligned or how candidates that fail to fit are handled — but nothing critical is missing.

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

Parameters3/5

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

With 100% schema description coverage the schema already explains models, criterion, gamma_categories and include_invariant. The description adds only the 'model x rate-heterogeneity x invariant-sites' framing, which makes the candidate-count combinatorics explicit but largely restates what the parameter descriptions already say.

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 (choose the substitution model) and resource (ML phylogeny), then pins down the mechanism: fitting every candidate on ONE shared topology and ranking by AIC/AICc/BIC. The emphasis on a single shared topology cleanly separates it from tree-building siblings such as build_tree.

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?

The phrase 'for a maximum-likelihood phylogeny' places it as a pre-tree step, and 'every candidate is fitted' implies a sweep rather than a single fit. It never names an alternative tool (e.g. build_tree) or states when not to use it, so the guidance is contextual rather than explicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources