Get a trait by ontology ID
get_traitRetrieve a trait's details by ontology ID—label, description, synonyms, mapped terms, categories, linked PGS IDs, and optional child terms—to resolve phenotypes for PGS analysis.
Instructions
Retrieve one trait by ontology ID (e.g. MONDO_0004989): label, description, synonyms, external mapped terms, trait categories, and the PGS IDs associated with it (and optionally its child terms).
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 |
|---|---|---|---|
| full | No | Return the complete upstream record including every field. Verbose; use only when the compact projection is not enough. | |
| fields | No | Optional comma-separated list of fields to return (dotted paths allowed, e.g. 'id,trait_reported,publication.title'). Omit for the default compact projection. | |
| trait_id | Yes | Ontology trait ID exactly as returned by search_traits, e.g. MONDO_0004989, EFO_0004337, HP_0000001. | |
| include_children | No | Include the child terms of this trait. Defaults to true. |