Skip to main content
Glama

Predict Pcr Products

predict_pcr_products
Read-only

Predict in-silico PCR products from a primer pair on a chosen assembly, returning locations, sizes, strands, mismatches, and sequences to check primer specificity.

Instructions

Predict every genomic product a primer pair amplifies up to max_product_size (in-silico PCR, as UCSC In-Silico PCR). Each product: location (0-based half-open + 1-based display), size, strand, per-primer mismatch counts and the product sequence (first 1,000 bp; primers uppercase). primary_total counts products off alt/fix contigs (alt_or_patch=true repeats a primary locus): primary_total == 1 is a single genomic product, 0 none. Primers need >= 15 perfect 3' bases. Runs on this deployment's own UCSC gfServer; an assembly that is not deployed answers upstream_unavailable (get_diagnostics -> blat shows what is live). Signature: predict_pcr_products(forward_primer, reverse_primer, assembly=, max_product_size=, limit=).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "forward_primer": "<forward_primer>",
      "reverse_primer": "<reverse_primer>"
    },
    "name": "predict_pcr_products"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax products (default 10).
assemblyNoGenome assembly (default hg38). Never lifted over.
forward_primerYes15-50 nt, A/C/G/T only, written 5'->3'.
reverse_primerYes15-50 nt, A/C/G/T only, written 5'->3'.
max_product_sizeNoLargest product in bp (default 4,000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

Beyond readOnlyHint/openWorldHint, it discloses return field contents, the 1,000 bp truncation and uppercase-primer convention, the primary_total counting rule including alt_or_patch locus repetition, the >= 15 perfect 3' base requirement, and the upstream_unavailable failure mode. It does not cover performance or rate characteristics, so it is strong rather than exhaustive.

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?

Front-loaded with the core purpose and packed with high-value detail in three sentences, with no filler. Density is high enough that a reader must parse carefully, but every clause carries operational meaning.

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?

With no output schema, the description fully covers return-value shape and the primary_total interpretation, plus the deployment-level dependency for assemblies. An agent has what it needs to call this correctly and interpret the result.

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 coverage is 100%, so all five parameters are already documented in structured form. The description adds only the 'up to max_product_size' framing and repeats defaults in the signature line, so it neither compensates for nor meaningfully exceeds the schema.

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 (predict genomic products of a primer pair, in-silico PCR) and anchors it to a known reference behavior (UCSC In-Silico PCR). An agent can distinguish this from alignment-search siblings like find_blat_alignments or get_reference_sequence without opening any schema.

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?

Gives conditional routing: an assembly that is not deployed returns upstream_unavailable and the agent should consult get_diagnostics -> blat. That is concrete when-it-fails guidance, but the description never explicitly contrasts this tool with sibling alternatives for related tasks, so it stops short of a full when-to-use/when-not statement.

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