Skip to main content
Glama

copy_number_loh

Read-only

Recompute loss of heterozygosity from an Affymetrix array's own per-marker genotype calls, rather than reading the runs the producer wrote: APT's window method, with the false-positive rate and the assumed genotyping error rate as parameters.

Input Schema

NameRequiredDescriptionDefault
fileNowhich copy-number file in this project, by name. Unset, it is the project's only one — and it refuses rather than guessing when there are several.
alphaNoAPT's `lohCN_alpha`: the false-positive rate the heterozygote cutoff is set against. Raising it makes the window narrower and the method readier to call a run, which is the knob to move when comparing against another caller.
_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.
error_rateNoAPT's `lohCN_errorrate`: the assumed genotyping error rate, which is what makes a heterozygote inside a homozygous stretch explicable. It is RE-ESTIMATED from the sample's own no-call rate when the genotype confidences reach the no-call threshold, and the output says which value was actually used.
min_genomic_spanNoAPT's `lohCN_minGenomicSpan`: a called run narrower than this many base pairs is dropped. The default is the vendor's 1,000,000.

Output Schema

NameRequiredDescriptionDefault
runsYesone entry per called run: chromosome (the file's own label), start, end, markers (how many genotyped markers it spans). Coordinates are the marker positions the container states, on whatever assembly it names
windowYeswhat the parameters solved to for THIS sample: markerCount (the window width), hetCutoff (heterozygotes at or above which the window is not LOH), and errorRate (the value used, which differs from the parameter when it was re-estimated from the no-call rate)
summaryYeshow many runs of loss of heterozygosity were called, over how many chromosomes and how many megabases, and how many markers the method could read
accountingYesmarkers (genotype calls read), noCalls (dropped before anything else), evaluated, inSegmentsTooShort (markers in a stretch shorter than the window, left UNCALLED rather than called clear), beyondLastChromosome, segments. The five ways a marker can be spent sum to markers
provenanceYeswhich data set the genotype calls came from, which one the coordinates came from, how many were paired, and the parameters in force. The pairing is checked against the marker each call names, never trusted

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered; the description adds real behavior beyond that — recomputation semantics, the fact that alpha narrows the heterozygote window and makes calls more liberal, and that error_rate is RE-ESTIMATED from the no-call rate and the actually-used value is reported. It does not mention prerequisites such as the array needing usable genotype confidences or what happens when recomputation fails.

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 sentence with the distinguishing claim front-loaded, which is the right priority for a crowded sibling namespace. The colon-and-em-dash construction makes the second half dense, but no sentence is filler.

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?

With an output schema present and full schema coverage, the description needn't document return values, and it covers what is computed and how. However, for a tool that can refuse on ambiguous input and depends on array-provided genotype calls, it omits the input preconditions and the 'refuses rather than guessing' behavior, leaving those to the schema alone.

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 the parameter descriptions are already unusually detailed (APT config names, ranges, re-estimation behavior), so the baseline is 3. The description restates alpha and error_rate in condensed form but contributes no semantics absent from the schema, and says nothing about min_genomic_span.

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 and resource — 'Recompute loss of heterozygosity' — and pins the data source to 'an Affymetrix array's own per-marker genotype calls' rather than producer-written runs. The named algorithm ('APT's window method') further disambiguates it from the surrounding copy_number_* family.

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 'rather than reading the runs the producer wrote' clause gives a clear selection rule: use this when you want LOH re-derived from genotypes instead of trusting vendor calls. It stops short of naming a sibling tool or stating explicit exclusions (e.g. when producer calls are preferable, or that the input must carry genotype calls).

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