Skip to main content
Glama

jean — Molecular Biology & Genomics

design_primer_pairs

The Primer Designer's own ranked search: scan the open record for primer pairs inside a product-size, Tm, length and GC window, score every candidate on Tm, dimers, hairpins, 3' stability, repeats, clamp and specificity under weights you set, and return the best N. With task: existing, supply one primer and it designs the mate. Emits the top pair so a downstream pcr_amplify runs on it. For a sequencing walk use design_sequencing_primers; for pydna's single-pair designer use design_primers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskNo`new` ranks candidate pairs; `existing` keeps the primer you supply and designs its mate.new
_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.
gc_maxNohighest primer GC accepted. In %.
gc_minNolowest primer GC accepted. In %.
n_pairsNohow many ranked pairs to return.
_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.
excludedNospans no primer may sit on, as find_primer_snps' `excluded` emits them: a list of {start, end}, 0-based and end-exclusive, where start = end is an insertion between two bases. The amplicon may run across them. The panel's Avoid known SNPs. Advanced.
fwd_tailNo5' non-annealing tail added to every forward primer (a restriction site or adapter). The footprint, and so binding and Tm, is unchanged. Advanced.
rev_tailNo5' non-annealing tail added to every reverse primer. Advanced.
target_tmNothe Tm each primer is scored toward. In °C.
weight_gcNoscoring weight for the `gc` penalty (0 switches it off). Advanced.
weight_tmNoscoring weight for the `tm` penalty (0 switches it off). Advanced.
conditionsNosalt, magnesium, dNTP and oligo concentrations plus the salt-correction method the Tm window is measured in. Left unset it is filled from your reaction-conditions settings, as the panel's are. Advanced.
region_endNo0-based inclusive end of the region to design within. Advanced.
target_endNo0-based inclusive end of the target. Advanced.
weight_end3Noscoring weight for the `end3` penalty (0 switches it off). Advanced.
region_startNo0-based inclusive start of the region to design within. Unset = the whole template. Advanced.
target_startNo0-based inclusive start of a target the amplicon must flank, with no primer on it. Advanced.
tm_window_maxNohighest primer Tm accepted at all. In °C.
tm_window_minNolowest primer Tm accepted at all. In °C.
weight_lengthNoscoring weight for the `length` penalty (0 switches it off). Advanced.
weight_poly_xNoscoring weight for the `polyX` penalty (0 switches it off). Advanced.
weight_hairpinNoscoring weight for the `hairpin` penalty (0 switches it off). Advanced.
weight_tm_pairNoscoring weight for the `tmPair` penalty (0 switches it off). Advanced.
weight_gc_clampNoscoring weight for the `gcClamp` penalty (0 switches it off). Advanced.
weight_self_endNoscoring weight for the `selfEnd` penalty (0 switches it off). Advanced.
existing_forwardNowith `task: existing`, the forward primer to keep. Only applies when task is existing.
existing_reverseNowith `task: existing`, the reverse primer to keep. Only applies when task is existing.
product_size_maxNolongest acceptable amplicon. In bp.
product_size_minNoshortest acceptable amplicon. In bp.
weight_cross_endNoscoring weight for the `crossEnd` penalty (0 switches it off). Advanced.
weight_di_repeatNoscoring weight for the `diRepeat` penalty (0 switches it off). Advanced.
primer_length_maxNolongest primer. In nt.
primer_length_minNoshortest primer. In nt.
weight_misprimingNoscoring weight for the `mispriming` penalty (0 switches it off). Advanced.
weight_self_dimerNoscoring weight for the `selfDimer` penalty (0 switches it off). Advanced.
mispriming_libraryNoa Primer3 repeat library to screen every primer against. `none` skips the screen. Advanced.none
weight_cross_dimerNoscoring weight for the `crossDimer` penalty (0 switches it off). Advanced.
weight_specificityNoscoring weight for the `specificity` penalty (0 switches it off). Advanced.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
taYesthe top pair's annealing temperature [°C]
pairsYesevery returned pair in rank order: score, both primers (sequence, span, Tm, GC), product length, Tm and Ta
forwardYesthe top pair's forward primer (wire into pcr_amplify)
reverseYesthe top pair's reverse primer
pairCountYeshow many pairs came back
shortfallYeswhy fewer pairs came back than were asked for; empty when the run was not short
productLenYesthe top pair's amplicon length [bp]

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations declare non-read-only, non-destructive, closed-world, which the description does not contradict; it adds real behavioral context by disclosing the scoring dimensions, that weights drive the penalties, the task:existing branch, and that output feeds a downstream pcr_amplify. It stops short of saying whether results are persisted to the project/notebook, which matters given readOnlyHint=false on what reads like a pure compute tool.

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?

Three sentences, front-loaded with the core verb and scope, then the task mode, then the downstream consumer and the sibling alternatives. The opening sentence is long and dense, but every clause carries information and nothing is redundant boilerplate.

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?

For a 39-parameter designer with an output schema, the description supplies what the schema cannot: the design intent, the task:existing branch, the downstream pcr_amplify handoff, and the sibling routing. Return values need not be explained because an output schema exists.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning by enumerating the scored penalties (Tm, dimers, hairpins, 3' stability, repeats, clamp, specificity) that correspond to the weight_* arguments, and by framing 'weights you set' as a coherent tuning surface. It does not explain the region/target or conditions parameters beyond what the schema already says.

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 ('ranked search ... scan the open record for primer pairs') and makes the scope explicit (product-size, Tm, length, GC windows; weighted scoring; returns best N). It distinguishes itself from two named siblings, so an agent can route without opening the schema.

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

Usage Guidelines5/5

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

Gives explicit routing rules: use design_sequencing_primers for a sequencing walk, design_primers for pydna's single-pair designer, and design_primer_pairs for the Primer Designer's own ranked search. It also states the task-mode switch ('With task: existing, supply one primer and it designs the mate').

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