Build PRS prompt
build_prs_promptGenerate 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
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | trait_results | |
| limit | No | ||
| pgs_id | No | ||
| ancestry | No | EUR | |
| assistant | No | other | |
| include_url | No | ||
| model_scope | No | usable | |
| result_paths | Yes | ||
| genome_labels | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Optional prefilled assistant URL (claude / chatgpt / perplexity / grok) when include_url=True. 'other' is paste-only. | |
| kind | Yes | 'score' (one PGS result), 'trait_summary' (aggregated cards), or 'trait_results' (full per-model panel; multi-sample when several genomes). | |
| trait | Yes | Trait label used in the prompt. | |
| prompt | Yes | Ready-to-paste interpretation prompt. Pipe it into another LLM, or follow it yourself. Multi-sample prompts are comparison-first. | |
| summary | Yes | Human-readable summary of what the prompt covers. | |
| assistant | Yes | Character-budget target: claude, chatgpt, perplexity, grok, or other. | |
| n_samples | Yes | Number of genomes covered by the prompt. | |
| char_limit | Yes | Character budget applied to the prompt. | |
| model_scope | Yes | just-prs model scope (usable / all / high_quality / high_moderate). | |
| prompt_chars | Yes | Length of the returned prompt text. | |
| sample_names | Yes | Genome labels in prompt order. |