Get Trait
get_traitRetrieve a trait’s label, synonyms, categories, description, score counts, and first 50 polygenic score IDs by trait ID; optionally include descendant traits and their scores.
Instructions
Return one trait: label, synonyms, categories, description, score counts and the first 50 PGS IDs mapped to it (pgs_ids_truncated says if there are more: page them with search_scores(trait_id)); include_children adds descendant traits and their score IDs. An unknown or retired ID is not_found. Signature: get_trait(trait_id, include_children=).
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": {
"trait_id": "<trait_id>"
},
"name": "get_trait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trait_id | Yes | Trait ontology ID as the catalog writes it (MONDO_0004989, EFO_0001645, HP_0000822). Get it from resolve_trait; old EFO IDs migrated to MONDO are not_found. | |
| include_children | No | Also list descendant traits and their scores. |