gwas_associations
Fetch GWAS Catalog SNP-trait associations by rs ID, EFO/MONDO trait ID or name, or mapped gene symbol, returning p-values, mapped genes, effect alleles, PMIDs, and study accessions.
Instructions
Fetch GWAS Catalog SNP-trait associations.
query is an rs id ("rs7412"), an EFO/MONDO trait id
("MONDO_0005150"), an exact EFO trait name, or a mapped gene symbol.
by="auto" treats rs... as rs_id, ontology ids as efo_id, and
everything else as efo_trait (the trait name must match the
catalog's EFO label). Returns association id, p-value, reported/EFO
traits, mapped genes, effect allele, beta, PMID and study accession.
Only upstream fields are returned; missing fields are omitted,
nothing is inferred. Failures return an error dict (error,
source).
Args: query: rs id, trait id/name, or gene symbol. by: "auto", "rs_id", "efo_trait", "efo_id" or "mapped_gene". limit: Associations per page, 1-100 (default 10). page: Zero-based page (default 0).
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": {
"query": "<query>"
},
"name": "gwas_associations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | auto | |
| page | No | ||
| limit | No | ||
| query | Yes |