Skip to main content
Glama
dna-seq
by dna-seq

Build PRS prompt

build_prs_prompt
Read-onlyIdempotent

Generate a reusable AI prompt from saved polygenic risk score (PRS) trait results, with optional URL prefilled for ChatGPT, Claude, Perplexity, or Grok.

Instructions

Build the reusable just-prs LLM prompt from saved by-trait results.

This is the MCP equivalent of prs prompt / the UI Ask-AI buttons. result_paths is always a list (one genome is fine; two or more becomes a comparison-first prompt). The returned prompt can be followed in this conversation or pasted into another assistant. Set include_url=True with assistant claude/chatgpt/perplexity/grok for a prefilled link.

kind: trait_results (default, full per-model panel), trait_summary (aggregated cards), or score (one PGS ID; pass pgs_id or the first scored row is used).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNotrait_results
limitNo
pgs_idNo
ancestryNoEUR
assistantNoother
include_urlNo
model_scopeNousable
result_pathsYes
genome_labelsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoOptional prefilled assistant URL (claude / chatgpt / perplexity / grok) when include_url=True. 'other' is paste-only.
kindYes'score' (one PGS result), 'trait_summary' (aggregated cards), or 'trait_results' (full per-model panel; multi-sample when several genomes).
traitYesTrait label used in the prompt.
promptYesReady-to-paste interpretation prompt. Pipe it into another LLM, or follow it yourself. Multi-sample prompts are comparison-first.
summaryYesHuman-readable summary of what the prompt covers.
assistantYesCharacter-budget target: claude, chatgpt, perplexity, grok, or other.
n_samplesYesNumber of genomes covered by the prompt.
char_limitYesCharacter budget applied to the prompt.
model_scopeYesjust-prs model scope (usable / all / high_quality / high_moderate).
prompt_charsYesLength of the returned prompt text.
sample_namesYesGenome labels in prompt order.
Install Server

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already convey readOnlyHint, idempotentHint, and destructiveHint safety traits. The description adds meaningful behavioral context: multiple `result_paths` produce a comparison-first prompt, `include_url=True` with specific assistants generates a prefilled link, and `kind='score'` uses `pgs_id` or the first scored row. No contradiction with annotations.

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?

The purpose is front-loaded in the first sentence, and the following sentences each add necessary behavior or parameter detail. It is reasonably compact for a 9-parameter tool, though a more structured list format could improve scannability.

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

Completeness4/5

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

The description covers the core purpose, prompt usability, comparison behavior, URL prefill options, and `kind` variants, while the output schema and annotations cover return values and safety. Auxiliary parameters like `limit`, `ancestry`, `model_scope`, and `genome_labels` are not explained, but their schema defaults provide partial context.

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?

With 0% schema coverage, the description carries the parameter-semantics burden. It explains `result_paths`, `kind`, `include_url`, `assistant`, and `pgs_id`, but leaves `limit`, `ancestry`, `model_scope`, and `genome_labels` without any descriptive guidance, relying solely on their names and defaults.

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?

The description opens with a specific verb and resource: 'Build the reusable just-prs LLM prompt from saved by-trait results.' It further anchors the tool as the MCP equivalent of `prs prompt` / the UI Ask-AI buttons, which clearly distinguishes it from sibling compute, plotting, and query tools.

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 description gives clear context on when to use the tool: when a reusable prompt is needed from saved by-trait results and when the prompt may be used in-conversation or pasted elsewhere. It also explains the one-vs-multiple genome behavior and the `kind` variants, but it does not explicitly name alternative tools or state when not to use this tool.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dna-seq/just-prs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server