Skip to main content
Glama

discover_tree_incongruence

Read-only

Ask whether some loci of a multi-locus alignment have a different history from the rest, by the incongruence length difference test (Farris et al. 1994).

Input Schema

NameRequiredDescriptionDefault
lociYesthe loci: one aligned FASTA file per locus (its records are the taxa), or library document names. Every file must name the same taxa.
seedNoseed for the column deals. Each permutation draws from its own stream, so one can be re-run alone. Advanced.
alphaNofalse discovery rate at which a locus is called.
_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.
_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.
correctionNoBenjamini–Hochberg (independent or positively dependent tests) or Benjamini–Yekutieli (any dependence; less power). Values: BH (Benjamini–Hochberg), BY (Benjamini–Yekutieli).BH
permutationsNorandom deals of the columns per test. The smallest p is 1 / (permutations + 1), which bounds how small a corrected q can get.

Output Schema

NameRequiredDescriptionDefault
lociYesper locus: its length, the rest's, D, the permutations' mean D, p, q and whether it is called
calledYesthe loci called at q ≤ alpha
globalYesthe test over every locus at once: D, its null, p
resultYesthe full result
nullModelYesthe null and the search, stated with every run

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds the identity of the statistical test, which helps interpret results, but says nothing about cost (permutation-based reanalysis), behavior with two loci, or failure modes for mismatched taxa.

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?

A single front-loaded sentence stating the question and the method with a citation; no filler, nothing that could be cut.

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

Completeness3/5

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

An output schema exists and schema coverage is complete, so the short description is defensible. However, for a seven-parameter, nested-object statistical tool with close sibling tools, it leaves out the practical framing (when to choose it, what inputs are structurally required) that would let an agent call it confidently.

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?

Schema description coverage is 100% and every parameter (loci, seed, alpha, correction, permutations, _files, _subject) is documented in the schema itself. The description adds no meaning beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific analytical question (do some loci of a multi-locus alignment have a different history) and the exact method (incongruence length difference test, Farris et al. 1994). This is clearly distinguishable from tree-shape siblings like compare_trees or discover_gene_tree_discordance, though it never names an alternative explicitly.

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?

Usage is only implied: an agent can infer it applies when a multi-locus alignment exists and the user asks about conflicting signal. There is no statement of prerequisites (minimum number of loci, identical taxon sets across files) or of when a different discordance tool would be more appropriate.

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