Resolve Trait
resolve_traitFind PGS Catalog traits by name, synonym, or EFO/MONDO/HP ID and get the catalog trait_id, match type, and score counts that other tools require.
Instructions
Find PGS Catalog traits by name, synonym or current ontology ID (EFO/MONDO/HP) and return each trait's id (the trait_id other tools take) with its categories, match (label, synonym or partial; a hint flags several exact matches), score_count (scores mapped directly) and score_count_with_descendants (direct + descendant traits; what search_scores(include_children=true) returns). Start here: other tools need the catalog's trait_id. Retired IDs are not mapped: search by name. No label or synonym match is not_found, with partial hits as candidates (match: weak). Signature: resolve_trait(query, limit=, offset=).
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": "resolve_trait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows (default 10, max 50). | |
| query | Yes | Trait name, synonym or ontology ID, e.g. 'type 2 diabetes'. | |
| offset | No | Rows to skip; use the previous `next_offset`. |