Skip to main content
Glama

jean — Molecular Biology & Genomics

export_tree

Read-only

Convert a tree between the four formats this workbench reads and writes — Newick, NEXUS, PhyloXML and NeXML — sniffing the input format rather than making the caller declare it. Newick loses annotations the richer formats carry, which is why the conversion is a step you choose rather than something done silently on export.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNothe tree's name inside the written file (NEXUS and NeXML carry one). Advanced.tree1
treeYesthe tree, in any of the four formats.
_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.
formatNothe format to write. Values: newick (Newick), nexus (NEXUS), phyloxml (PhyloXML), nexml (NeXML).newick
_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.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesthe tree written in the requested format
sourceFormatYesthe format the input was sniffed as — check this when a conversion surprises you

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so the safety profile is covered. The description usefully adds two behavioral facts beyond the annotations: input format is sniffed rather than declared, and Newick conversion is lossy for annotations carried by richer formats.

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?

Two sentences, front-loaded with the core action and formats before the rationale. Tight overall, though the second sentence carries two ideas (lossiness plus why conversion is explicit) that could be trimmed.

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?

An output schema exists so return values need not be explained, and annotations cover the safety profile. The description supplies the remaining non-obvious context an agent needs: format handling and lossiness caveat.

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%, so the schema already documents tree, format, name, and the nested _subject/_files objects; the baseline of 3 applies. The description adds only the format-sniffing note, which lightly informs the tree param but does not elaborate on any parameter beyond the schema.

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?

States a specific verb (convert) and resource (tree) and enumerates the four formats (Newick, NEXUS, PhyloXML, NeXML), which is more than a restatement of the title. However, it does not distinguish itself from the closely related sibling transform_tree, leaving the agent to infer the boundary from names alone.

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 closing clause explains why conversion is a deliberate user-chosen step rather than silent export behavior, which implies the intended use context. It stops short of explicit when-to-use/when-not guidance or naming an alternative such as transform_tree or build_tree.

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